@nuskin/ns-product-lib 2.10.2-cx24-5155.1 → 2.10.2-cx24-5155.2

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.10.2-cx24-5155.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.10.2-cx24-5155.1...v2.10.2-cx24-5155.2) (2023-09-13)
2
+
3
+
4
+ ### Fix
5
+
6
+ * added product bundle support (#CX24-5155) ([b38e558](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/b38e5583dfe06d4907f14c7b611035a2ccf277e5)), closes [#CX24-5155](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-5155)
7
+
1
8
  ## [2.10.2-cx24-5155.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.10.1...v2.10.2-cx24-5155.1) (2023-09-08)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.10.2-cx24-5155.1",
3
+ "version": "2.10.2-cx24-5155.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": {
@@ -168,7 +168,7 @@ const ProductData = {
168
168
 
169
169
  //return max epoch time since childSkus already mapped in fetchChildSkus
170
170
  if (product.childSkus.some(sku => sku.inventory && sku.inventory.backOrderDate)) {
171
- return Math.max(...product.childSkus.map(sku => sku.inventory.backOrderDate || 0));
171
+ return Math.max(...product.childSkus.map(sku => (sku.inventory && sku.inventory.backOrderDate) || 0));
172
172
  }
173
173
  }
174
174