@nuskin/ns-product-lib 2.14.3-cx24-5962.1 → 2.14.3-cx24-5962.2
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/graph-ql/product.js +2 -1
package/package.json
CHANGED
package/src/graph-ql/product.js
CHANGED
@@ -509,7 +509,8 @@ function mapProductStatus(status) {
|
|
509
509
|
function mapPromos(product, isKitBundle = false) {
|
510
510
|
if (isKitBundle) {
|
511
511
|
const { pricingJson } = product
|
512
|
-
const
|
512
|
+
const parsedPricing = JSON.parse(pricingJson)
|
513
|
+
const promotion = parsedPricing.promotion
|
513
514
|
return (promotion && promotion.length >= 1) ? { message: promotion[0].message, offerId: promotion[0].offerId } : { message: '', offerId: '' }
|
514
515
|
} else {
|
515
516
|
return { message: product.salesLabel || product.salesText, offerId: product.salesLabel || product.salesText }
|