@nuskin/ns-product-lib 2.19.7 → 2.19.8-gms-10644.1
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 +1 -1
- package/src/graph-ql/product.js +2 -1
package/package.json
CHANGED
package/src/graph-ql/product.js
CHANGED
@@ -248,11 +248,12 @@ function mapPricingJson(productDetail, kitOrVariant, isContentStack) {
|
|
248
248
|
// eslint-disable-next-line no-unused-vars
|
249
249
|
function mapProduct(product, market, locale, config) {
|
250
250
|
const kitBundleProducts = product.bundle;
|
251
|
+
|
251
252
|
//serves as parent
|
252
253
|
const defaultVariant = !kitBundleProducts ? product.variants.find(v => v.sku === config.sku) : null
|
253
|
-
const productImages = mapProductImages(product)
|
254
254
|
const kitOrVariant = !kitBundleProducts ? defaultVariant : kitBundleProducts
|
255
255
|
const productOrVariant = !kitBundleProducts ? defaultVariant : product
|
256
|
+
const productImages = mapProductImages(productOrVariant)
|
256
257
|
const pricing = kitOrVariant.price
|
257
258
|
const points = kitOrVariant.points
|
258
259
|
const isBackOrdered = kitOrVariant.status.inventory === 'backordered'
|