@open-tender/utils 0.5.43 → 0.5.44

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.
@@ -788,8 +788,8 @@ const validateCart = (cart, categories, soldOut, requestedAt) => {
788
788
  return option;
789
789
  }
790
790
  else {
791
- // update the old option price to the new option price
792
- const updatedOption = Object.assign(Object.assign({}, option), { price: newOption.price });
791
+ // update the new option quantity to the old option quantity
792
+ const updatedOption = Object.assign(Object.assign({}, newOption), { quantity: option.quantity });
793
793
  return updatedOption;
794
794
  }
795
795
  }
@@ -752,8 +752,8 @@ export const validateCart = (cart, categories, soldOut, requestedAt) => {
752
752
  return option;
753
753
  }
754
754
  else {
755
- // update the old option price to the new option price
756
- const updatedOption = Object.assign(Object.assign({}, option), { price: newOption.price });
755
+ // update the new option quantity to the old option quantity
756
+ const updatedOption = Object.assign(Object.assign({}, newOption), { quantity: option.quantity });
757
757
  return updatedOption;
758
758
  }
759
759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.5.43",
3
+ "version": "0.5.44",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",