@widergy/utilitygo-smart-bill-web 3.24.2 → 3.24.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.24.4](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.24.3...v3.24.4) (2026-04-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* crash ([#90](https://github.com/widergy/UtilityGO-Smart-Bill-Web/issues/90)) ([19b16e0](https://github.com/widergy/UtilityGO-Smart-Bill-Web/commit/19b16e081535e1082e307f91edadaf889d756556))
|
|
7
|
+
|
|
8
|
+
## [3.24.3](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.24.2...v3.24.3) (2026-04-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* [DEV-766] standarize prepush ([#87](https://github.com/widergy/UtilityGO-Smart-Bill-Web/issues/87)) ([b363f3a](https://github.com/widergy/UtilityGO-Smart-Bill-Web/commit/b363f3a4bbacf78e5f0cd717cbb60ce2ff53729b))
|
|
14
|
+
|
|
1
15
|
## [3.24.2](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.24.1...v3.24.2) (2026-03-25)
|
|
2
16
|
|
|
3
17
|
|
package/dist/components/SmartBillSummary/tabs/components/RateCard/components/ProgressBar/index.js
CHANGED
|
@@ -28,8 +28,8 @@ const ProgressBar = _ref => {
|
|
|
28
28
|
const {
|
|
29
29
|
LinearProgress
|
|
30
30
|
} = components;
|
|
31
|
-
const lastRange = data[data.length - 1]?.range[1];
|
|
32
|
-
const totalRange = lastRange === 'Infinity' ? data[data.length - 2]?.range[1] * 1.5 : lastRange;
|
|
31
|
+
const lastRange = data[data.length - 1]?.range?.[1];
|
|
32
|
+
const totalRange = lastRange === 'Infinity' ? (data[data.length - 2]?.range?.[1] ?? 0) * 1.5 : lastRange;
|
|
33
33
|
const progressOverlayValue = (0, _utils.getProgressOverlayValue)(specificRate, totalRange, value);
|
|
34
34
|
const isOverLimit = value > limitValue;
|
|
35
35
|
const {
|
|
@@ -63,6 +63,7 @@ const ProgressBar = _ref => {
|
|
|
63
63
|
range,
|
|
64
64
|
name
|
|
65
65
|
} = _ref2;
|
|
66
|
+
if (!Array.isArray(range)) return null;
|
|
66
67
|
const isLast = range[1] === 'Infinity';
|
|
67
68
|
const width = isLast ? '20%' : `${range[1] / totalRange * 100}%`;
|
|
68
69
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -87,7 +87,7 @@ const RateCard = _ref => {
|
|
|
87
87
|
let {
|
|
88
88
|
range
|
|
89
89
|
} = _ref4;
|
|
90
|
-
return range[1] >= totalConsumption;
|
|
90
|
+
return Array.isArray(range) && range[1] >= totalConsumption;
|
|
91
91
|
});
|
|
92
92
|
const currentRate = rates[currentIndex] ?? {};
|
|
93
93
|
const startRateValue = Array.isArray(currentRate?.range) && currentRate.range[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widergy/utilitygo-smart-bill-web",
|
|
3
|
-
"version": "3.24.
|
|
3
|
+
"version": "3.24.4",
|
|
4
4
|
"description": "UtilityGO SmartBill Web",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"start": "SKIP_PREFLIGHT_CHECK=true DISABLE_ESLINT_PLUGIN=true react-scripts --openssl-legacy-provider start ",
|
|
13
13
|
"build-example": "react-scripts --openssl-legacy-provider build",
|
|
14
|
-
"lint": "./node_modules/eslint/bin/eslint.js src --
|
|
15
|
-
"lint-suppress": "./node_modules/eslint/bin/eslint.js src --
|
|
14
|
+
"lint": "./node_modules/eslint/bin/eslint.js src --prune-suppressions",
|
|
15
|
+
"lint-suppress": "./node_modules/eslint/bin/eslint.js src --suppress-all",
|
|
16
16
|
"test": "SKIP_PREFLIGHT_CHECK=true DISABLE_ESLINT_PLUGIN=true react-scripts test --env=jsdom",
|
|
17
17
|
"eject": "react-scripts eject",
|
|
18
18
|
"prebuild": "rimraf dist",
|