@crystaldesign/diva-seller 24.15.0-rc.9 → 24.15.0

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.
@@ -11659,6 +11659,8 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
11659
11659
  } else if (field == 'percentageDiscount' && (newVariant === null || newVariant === void 0 ? void 0 : newVariant[field]) === 0) {
11660
11660
  finalVariant[field] = 0;
11661
11661
  newModified[field] = variant[field] !== 0;
11662
+ } else if ((field == 'percentageDiscount' || field == 'discountedPrice') && (newVariant === null || newVariant === void 0 ? void 0 : newVariant[field]) === variant[field]) {
11663
+ continue;
11662
11664
  } else if (field == 'addedPrice' || field == 'calculatedPrice') {
11663
11665
  var _currentState$modifie;
11664
11666
  var _ProductHandler$calcu = ProductHandler.calculateComputedValue(variant[field], newVariant === null || newVariant === void 0 ? void 0 : newVariant[field], currentState.baseData[field], (_currentState$modifie = currentState.modified.variantData[_i]) === null || _currentState$modifie === void 0 ? void 0 : _currentState$modifie[field]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-seller",
3
- "version": "24.15.0-rc.9",
3
+ "version": "24.15.0",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -29,9 +29,9 @@
29
29
  "react-dom": "^18.3.1"
30
30
  },
31
31
  "dependencies": {
32
- "@crystaldesign/analytics": "24.15.0-rc.9",
33
- "@crystaldesign/products-component": "24.15.0-rc.9",
34
- "@crystaldesign/real-time-viewer": "24.15.0-rc.9",
32
+ "@crystaldesign/analytics": "24.15.0",
33
+ "@crystaldesign/products-component": "24.15.0",
34
+ "@crystaldesign/real-time-viewer": "24.15.0",
35
35
  "@emotion/react": "^11.4.1",
36
36
  "@emotion/styled": "^11.3.0",
37
37
  "@mui/icons-material": "^6.1.5",
@@ -43,5 +43,5 @@
43
43
  },
44
44
  "types": "./build/types/seller/src/index.d.ts",
45
45
  "module": "build/esm/index.js",
46
- "gitHead": "a8a9bb038c106c255d1d2f7d28d5a7cb42290299"
46
+ "gitHead": "c278d5e4544907ea74555b4eecb863ebab7c1fac"
47
47
  }