@gem-sdk/components 2.4.4 → 2.4.5

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
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",