@pisell/private-materials 6.4.53 → 6.4.54
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/components/footer/amount.js +3 -0
- package/lib/components/booking/components/footer/amount.js +3 -0
- package/package.json +3 -3
|
@@ -580,6 +580,9 @@ var getSurcharge = function getSurcharge(state, options) {
|
|
|
580
580
|
finalAmount = configTotal.toDecimalPlaces(2, Decimal.ROUND_HALF_UP).toNumber();
|
|
581
581
|
}
|
|
582
582
|
var name = surchargeConfig.name || {};
|
|
583
|
+
if (Number(finalAmount) <= 0) {
|
|
584
|
+
continue;
|
|
585
|
+
}
|
|
583
586
|
surchargeWithAmount.push({
|
|
584
587
|
key: "custom_surcharge_".concat(i),
|
|
585
588
|
label: name[state.locale || 'en'] || name['en'] || name['original'],
|
|
@@ -396,6 +396,9 @@ var getSurcharge = (state, options) => {
|
|
|
396
396
|
finalAmount = configTotal.toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP).toNumber();
|
|
397
397
|
}
|
|
398
398
|
const name = surchargeConfig.name || {};
|
|
399
|
+
if (Number(finalAmount) <= 0) {
|
|
400
|
+
continue;
|
|
401
|
+
}
|
|
399
402
|
surchargeWithAmount.push({
|
|
400
403
|
key: `custom_surcharge_${i}`,
|
|
401
404
|
label: name[state.locale || "en"] || name["en"] || name["original"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.54",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"react-resizable": "^3.0.5",
|
|
61
61
|
"styled-components": "^6.0.0-rc.3",
|
|
62
|
-
"@pisell/
|
|
62
|
+
"@pisell/icon": "0.0.11",
|
|
63
63
|
"@pisell/utils": "3.0.2",
|
|
64
64
|
"@pisell/date-picker": "3.0.7",
|
|
65
|
-
"@pisell/
|
|
65
|
+
"@pisell/materials": "6.4.12"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|