@betterstore/react 0.3.18 → 0.3.19
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 +6 -0
- package/dist/index.cjs.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -35176,6 +35176,9 @@ function CheckoutSummary({ appliedDiscounts, lineItems, shipping, tax, currency,
|
|
|
35176
35176
|
const percentage = discount.discount.value / 100;
|
|
35177
35177
|
return elegibleTotalAmount * percentage;
|
|
35178
35178
|
}
|
|
35179
|
+
else if (discount.discount.valueType === "FREE") {
|
|
35180
|
+
return elegibleTotalAmount;
|
|
35181
|
+
}
|
|
35179
35182
|
return elegibleQuantity * discount.discount.value;
|
|
35180
35183
|
});
|
|
35181
35184
|
const totalDiscountAmount = formattedProductAppliedDiscounts.length > 0
|
package/dist/index.mjs
CHANGED
|
@@ -35153,6 +35153,9 @@ function CheckoutSummary({ appliedDiscounts, lineItems, shipping, tax, currency,
|
|
|
35153
35153
|
const percentage = discount.discount.value / 100;
|
|
35154
35154
|
return elegibleTotalAmount * percentage;
|
|
35155
35155
|
}
|
|
35156
|
+
else if (discount.discount.valueType === "FREE") {
|
|
35157
|
+
return elegibleTotalAmount;
|
|
35158
|
+
}
|
|
35156
35159
|
return elegibleQuantity * discount.discount.value;
|
|
35157
35160
|
});
|
|
35158
35161
|
const totalDiscountAmount = formattedProductAppliedDiscounts.length > 0
|