@gem-sdk/components 2.2.0-staging.44 → 2.2.0-staging.46

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.
@@ -32,7 +32,7 @@ const ProductPrice = (props)=>{
32
32
  bundleItem?.quantity
33
33
  ]);
34
34
  const bundleDiscount = React.useMemo(()=>{
35
- const value = parseInt(bundleItem?.discountValue);
35
+ const value = Number(bundleItem?.discountValue);
36
36
  if (bundleItem?.discountType === 'percentage') {
37
37
  return price * quantityProduct * value / 100;
38
38
  }
@@ -9,7 +9,7 @@ const renderCombineVariants = (isSoldOutMark, hasPreSelected, enablePrice)=>{
9
9
  ${isSoldOutMark ? `{%- if variantItem.available == false -%}
10
10
  {%- if variantItem.id == variant.id -%}
11
11
  <option origin-price="{{variantItem.price}}" disabled ${hasPreSelected ? 'selected' : ''} value="{{variantItem.id}}" key="{{variantItem.id}}">
12
- {{variantItem.title}} ${hasPrice} : ''}
12
+ {{variantItem.title}} ${hasPrice}
13
13
  </option>
14
14
  {% else %}
15
15
  <option ${optionAttrs} disabled>
@@ -28,7 +28,7 @@ const ProductPrice = (props)=>{
28
28
  bundleItem?.quantity
29
29
  ]);
30
30
  const bundleDiscount = useMemo(()=>{
31
- const value = parseInt(bundleItem?.discountValue);
31
+ const value = Number(bundleItem?.discountValue);
32
32
  if (bundleItem?.discountType === 'percentage') {
33
33
  return price * quantityProduct * value / 100;
34
34
  }
@@ -7,7 +7,7 @@ const renderCombineVariants = (isSoldOutMark, hasPreSelected, enablePrice)=>{
7
7
  ${isSoldOutMark ? `{%- if variantItem.available == false -%}
8
8
  {%- if variantItem.id == variant.id -%}
9
9
  <option origin-price="{{variantItem.price}}" disabled ${hasPreSelected ? 'selected' : ''} value="{{variantItem.id}}" key="{{variantItem.id}}">
10
- {{variantItem.title}} ${hasPrice} : ''}
10
+ {{variantItem.title}} ${hasPrice}
11
11
  </option>
12
12
  {% else %}
13
13
  <option ${optionAttrs} disabled>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.2.0-staging.44",
3
+ "version": "2.2.0-staging.46",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",