@nuskin/ns-shop 6.6.1 → 6.6.2

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-shop",
3
- "version": "6.6.1",
3
+ "version": "6.6.2",
4
4
  "description": "The description that will amaze and astound your audience when they read it",
5
5
  "main": "src/shop.js",
6
6
  "scripts": {
@@ -832,7 +832,14 @@ async function checkItemAvailability() {
832
832
  const response = await ProductService.getProductBySku({sku: item.product.sku});
833
833
  const productInfo = response.success && response.product;
834
834
  const QualificationService = await getQualificationService()
835
- const qual = await QualificationService.getQualification(productInfo.equinoxProductId) || await QualificationService.getQualification(productInfo.sku)
835
+ let qual = null
836
+ if (productInfo.equinoxProductId) {
837
+ qual = await QualificationService.getQualification(productInfo.equinoxProductId)
838
+ }
839
+
840
+ if (!qual){
841
+ qual = await QualificationService.getQualification(productInfo.sku)
842
+ }
836
843
  let cartQty = 0;
837
844
  // if base sku
838
845
  if (productInfo.baseSku) {