@nuskin/ns-product-lib 2.17.1 → 2.17.2-cx24-7003.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/graph-ql/product.js +2 -1
package/package.json
CHANGED
package/src/graph-ql/product.js
CHANGED
@@ -438,9 +438,10 @@ function mapChildSKU(kitBundleProducts) {
|
|
438
438
|
if (!kitBundleProducts || !kitBundleProducts.kitProducts) {
|
439
439
|
return [];
|
440
440
|
}
|
441
|
+
const personalOffer = sessionStorage.getItem('personalOffer') ? JSON.parse(sessionStorage.getItem('personalOffer')) : false
|
441
442
|
return kitBundleProducts.kitProducts.map((kitProduct) => {
|
442
443
|
const { product } = kitProduct;
|
443
|
-
if (product.variants.length > 1) {
|
444
|
+
if (product.variants.length > 1 && !personalOffer) {
|
444
445
|
return product.variants.map((variant) => {
|
445
446
|
return {
|
446
447
|
productId: product.id,
|