@nuskin/ns-product-lib 2.17.3 → 2.17.5

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.3",
3
+ "version": "2.17.5",
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": {
@@ -447,7 +447,7 @@ function mapChildSKU(kitBundleProducts) {
447
447
  productId: product.id,
448
448
  skuId: variant.sku,
449
449
  type: kitProduct.isMandatory ? 'MANDATORY' : 'OPTIONAL',
450
- skuQuantity: variant.availableQuantity,
450
+ skuQuantity: kitProduct.quantity,
451
451
  // eslint-disable-next-line max-len
452
452
  availableChannels: Array.isArray(kitBundleProducts.availableChannels) ? kitBundleProducts.availableChannels.join(',') : kitBundleProducts.availableChannels,
453
453
  inventory: {
@@ -472,7 +472,7 @@ function mapChildSKU(kitBundleProducts) {
472
472
  }
473
473
  }
474
474
  }
475
- });
475
+ }).flat();
476
476
  }
477
477
 
478
478