@nuskin/ns-shop 7.0.2 → 7.0.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 +1 -1
- package/src/cart/cartService.js +4 -1
package/package.json
CHANGED
package/src/cart/cartService.js
CHANGED
|
@@ -489,7 +489,10 @@ async function getAddToCartQty(product) {
|
|
|
489
489
|
retVal = product.maxQuantity - cartQty;
|
|
490
490
|
if (product.isExclusive) {
|
|
491
491
|
try {
|
|
492
|
-
const qual = await QualificationService.getQualification(product.sku)
|
|
492
|
+
const qual = await QualificationService.getQualification(product.sku);
|
|
493
|
+
if (!qual) {
|
|
494
|
+
return 0;
|
|
495
|
+
}
|
|
493
496
|
const productIdentifier = qual.productId || qual.sku;
|
|
494
497
|
cartQty = await getBaseSkuCartQuantity(productIdentifier)
|
|
495
498
|
retVal = product.maxQuantity - cartQty;
|