@nuskin/ns-product-lib 2.17.5 → 2.17.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/product.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.17.5",
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": {
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
  });