@nuskin/ns-product-lib 2.17.1 → 2.17.2-cx24-7003.2

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.17.1",
3
+ "version": "2.17.2-cx24-7003.2",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -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 && typeof personalOffer === 'object') {
444
445
  return product.variants.map((variant) => {
445
446
  return {
446
447
  productId: product.id,