@nuskin/ns-shop 5.20.1 → 5.20.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cart/cart.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "5.20.1",
3
+ "version": "5.20.2",
4
4
  "description": "The description that will amaze and astound your audience when they read it",
5
5
  "main": "src/shop.js",
6
6
  "scripts": {
package/src/cart/cart.js CHANGED
@@ -1085,8 +1085,8 @@ export default function Cart(cartData) {
1085
1085
  retVal.orderPoints -= UserService.getUser().availablePoints <= retVal.orderPoints ? item.getProduct().points : 0;
1086
1086
  if (!item.isPartialRedeem()) {
1087
1087
  retVal.orderPrice -= totalPrice;
1088
+ retVal.orderPsv -= item.getTotalPsv();
1088
1089
  }
1089
- retVal.orderPsv -= item.getTotalPsv();
1090
1090
  }
1091
1091
  }
1092
1092