@nuskin/ns-product-lib 2.17.4 → 2.17.6

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.4",
3
+ "version": "2.17.6",
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": {
@@ -472,7 +472,7 @@ function mapChildSKU(kitBundleProducts) {
472
472
  }
473
473
  }
474
474
  }
475
- });
475
+ }).flat();
476
476
  }
477
477
 
478
478
 
package/src/product.js CHANGED
@@ -393,7 +393,7 @@ const Product = function (productData) {
393
393
  Object.keys(this.priceMap).forEach(priceTypeKey => {
394
394
  const eventPriceType = priceTypeKey.substring(0, priceTypeKey.indexOf(`-${this.priceType}`));
395
395
 
396
- if (eventPriceType) {
396
+ if (eventPriceType && this.priceMap[eventPriceType]) {
397
397
  eventPriceTypes.push(eventPriceType);
398
398
  }
399
399
  });