@nuskin/ns-product-lib 2.19.7-td-1017.1 → 2.19.7-td-1017.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.19.7-td-1017.1",
3
+ "version": "2.19.7-td-1017.3",
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": {
@@ -257,6 +257,7 @@ function mapProduct(product, market, locale, config) {
257
257
  const points = kitOrVariant.points
258
258
  const isBackOrdered = kitOrVariant.status.inventory === 'backordered'
259
259
  const promoData = mapPromos(kitOrVariant)
260
+ const productionBom = product.bundle && product.bundle.isProductionBom ? product.bundle.isProductionBom : false;
260
261
 
261
262
  const productDetail = {
262
263
  "sku": !kitBundleProducts ? defaultVariant.sku : product.id,
@@ -328,7 +329,7 @@ function mapProduct(product, market, locale, config) {
328
329
  isBackOrdered: isBackOrdered,
329
330
  inventoryStatus: isBackOrdered ? 'BACKORDER' : 'IN STOCK',
330
331
  productStatus: mapProductStatus(kitOrVariant.status.status),
331
- productionBom: !kitBundleProducts ? false : true
332
+ productionBom: productionBom
332
333
  }
333
334
  }
334
335