@nuskin/ns-shop 7.0.11-CodeFix.1 → 7.0.11-cx24-7213.1
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
|
@@ -47,14 +47,18 @@ function _getEquinoxSession() {
|
|
|
47
47
|
method: 'GET',
|
|
48
48
|
endpoint: 'customers'
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
sessionStorage.setItem('customerSession', true)
|
|
53
|
-
return _equinoxRequest(equinoxRequestOptions)
|
|
54
|
-
} else {
|
|
55
|
-
return null
|
|
56
|
-
}
|
|
50
|
+
|
|
51
|
+
console.log("sample log");
|
|
57
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
|
+
return _equinoxRequest(equinoxRequestOptions);
|
|
58
62
|
|
|
59
63
|
}
|
|
60
64
|
|
|
@@ -404,7 +408,7 @@ function _assembleChildSkus(requestData, options) {
|
|
|
404
408
|
if(personalOffer != null && productWithVariant.length > 0 && productWithVariant[0].variantSelected){
|
|
405
409
|
selectedVariants = productWithVariant[0].variantSelected;
|
|
406
410
|
}
|
|
407
|
-
if (personalOffer != null && selectedVariants && cs.skuId != selectedVariants[cs.productId] && (cs.type !== "BUNDLE" && cs.type !== "OPTIONAL"
|
|
411
|
+
if (personalOffer != null && selectedVariants && cs.skuId != selectedVariants[cs.productId] && (cs.type !== "BUNDLE" && cs.type !== "OPTIONAL")) return null
|
|
408
412
|
const childSku =
|
|
409
413
|
(personalOffer != null && selectedVariants && selectedVariants[cs.productId] && config.MySite_graphql_active)
|
|
410
414
|
? {
|