@nuskin/ns-shop 7.0.11-cx24-7213.2 → 7.0.11-cx24-7213.3

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": "7.0.11-cx24-7213.2",
3
+ "version": "7.0.11-cx24-7213.3",
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": {
@@ -47,30 +47,14 @@ function _getEquinoxSession() {
47
47
  method: 'GET',
48
48
  endpoint: 'customers'
49
49
  }
50
-
51
- console.log("Equinox session");
52
-
53
- // const customerSession = sessionStorage.getItem('customerSession') ? JSON.parse(sessionStorage.getItem('customerSession')) : ''
54
- // if (customerSession === '') {
55
- // sessionStorage.setItem('customerSession', true)
56
- // return _equinoxRequest(equinoxRequestOptions)
57
- // } else {
58
- // return null
59
- // }
60
-
61
- let customerSession = sessionStorage.getItem('customerSession');
62
- if (!customerSession) {
63
- console.log("No session found, creating a new one");
64
- return _equinoxRequest(equinoxRequestOptions).then(response => {
65
- sessionStorage.setItem('customerSession', JSON.stringify(response.data));
66
- return response;
67
- });
50
+ const customerSession = sessionStorage.getItem('customerSession') ? JSON.parse(sessionStorage.getItem('customerSession')) : ''
51
+ if (customerSession === '') {
52
+ sessionStorage.setItem('customerSession', true)
53
+ return _equinoxRequest(equinoxRequestOptions)
68
54
  } else {
69
- console.log("Session found");
70
- return Promise.resolve(JSON.parse(customerSession));
55
+ return null
71
56
  }
72
-
73
- // return _equinoxRequest(equinoxRequestOptions);
57
+
74
58
 
75
59
  }
76
60
 
@@ -420,7 +404,7 @@ function _assembleChildSkus(requestData, options) {
420
404
  if(personalOffer != null && productWithVariant.length > 0 && productWithVariant[0].variantSelected){
421
405
  selectedVariants = productWithVariant[0].variantSelected;
422
406
  }
423
- if (personalOffer != null && selectedVariants && cs.skuId != selectedVariants[cs.productId] && (cs.type !== "BUNDLE" && cs.type !== "OPTIONAL")) return null
407
+ if (personalOffer != null && selectedVariants && cs.skuId != selectedVariants[cs.productId] && (cs.type !== "BUNDLE" && cs.type !== "OPTIONAL" && cs.type !== "SKUKIT")) return null
424
408
  const childSku =
425
409
  (personalOffer != null && selectedVariants && selectedVariants[cs.productId] && config.MySite_graphql_active)
426
410
  ? {