@open-tender/utils 0.5.45 → 0.5.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.
- package/dist/cjs/utils/cart.js +2 -2
- package/dist/esm/utils/cart.js +2 -2
- package/package.json +1 -1
package/dist/cjs/utils/cart.js
CHANGED
|
@@ -788,8 +788,8 @@ const validateCart = (cart, categories, soldOut, requestedAt) => {
|
|
|
788
788
|
return option;
|
|
789
789
|
}
|
|
790
790
|
else {
|
|
791
|
-
// update the
|
|
792
|
-
const updatedOption = Object.assign(Object.assign({},
|
|
791
|
+
// update the old option price to the new option price
|
|
792
|
+
const updatedOption = Object.assign(Object.assign({}, option), { name: newOption.name, slug: newOption.slug, shortName: newOption.shortName, price: newOption.price });
|
|
793
793
|
return updatedOption;
|
|
794
794
|
}
|
|
795
795
|
}
|
package/dist/esm/utils/cart.js
CHANGED
|
@@ -752,8 +752,8 @@ export const validateCart = (cart, categories, soldOut, requestedAt) => {
|
|
|
752
752
|
return option;
|
|
753
753
|
}
|
|
754
754
|
else {
|
|
755
|
-
// update the
|
|
756
|
-
const updatedOption = Object.assign(Object.assign({},
|
|
755
|
+
// update the old option price to the new option price
|
|
756
|
+
const updatedOption = Object.assign(Object.assign({}, option), { name: newOption.name, slug: newOption.slug, shortName: newOption.shortName, price: newOption.price });
|
|
757
757
|
return updatedOption;
|
|
758
758
|
}
|
|
759
759
|
}
|
package/package.json
CHANGED