@nuskin/ns-product-lib 2.17.2-cx24-7003.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.2-cx24-7003.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": {
@@ -441,7 +441,7 @@ function mapChildSKU(kitBundleProducts) {
441
441
  const personalOffer = sessionStorage.getItem('personalOffer') ? JSON.parse(sessionStorage.getItem('personalOffer')) : false
442
442
  return kitBundleProducts.kitProducts.map((kitProduct) => {
443
443
  const { product } = kitProduct;
444
- if (product.variants.length > 1 && !personalOffer) {
444
+ if (product.variants.length > 1 && typeof personalOffer === 'object') {
445
445
  return product.variants.map((variant) => {
446
446
  return {
447
447
  productId: product.id,