@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.19
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fix
8
+
3
9
  ## 0.3.18
4
10
 
5
11
  ### Patch Changes
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/react",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {