@nuskin/ns-shop 5.21.4 → 5.21.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "5.21.4",
3
+ "version": "5.21.6",
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": {
@@ -27,7 +27,7 @@
27
27
  "@nuskin/ns-feature-flags": "1.4.2",
28
28
  "@nuskin/ns-loyalty-web": "1.5.5",
29
29
  "@nuskin/ns-product-lib": "1.4.1",
30
- "@nuskin/nuskinjquery": "2.2.2",
30
+ "@nuskin/nuskinjquery": "2.3.1",
31
31
  "axios": "0.21.1",
32
32
  "decimal.js": "10.2.1",
33
33
  "firebase": "7.6.1",
@@ -865,10 +865,10 @@ let setSelectedShipMethod = function(order, matchMethod = {}) {
865
865
  * @param {Object[]} custom The Custom array on the salesorderrequest
866
866
  * @param {Object} order
867
867
  */
868
- function setPickupPoints(custom = [], order) {
869
- custom = custom || [];
868
+ function setPickupPoints(custom, order) {
869
+ const pupLocations = custom || [];
870
870
  if (order.selectedShippingMethod && PickupUtil.supports(order.selectedShippingMethod.Code)) {
871
- order.pickupPoints = PickupUtil.parse(custom);
871
+ order.pickupPoints = PickupUtil.parse(pupLocations);
872
872
  if (order.selectedPickupPoint) {
873
873
  order.selectedPickupPoint = order.pickupPoints.find(pickupPoint => order.selectedPickupPoint.id === pickupPoint.id);
874
874
  }