@nuskin/ns-shop 6.4.11 → 6.4.12
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 -13
package/package.json
CHANGED
package/src/cart/cartService.js
CHANGED
|
@@ -101,22 +101,13 @@ const awaitForConfig = async () => {
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
const getQualificationService = async () => {
|
|
104
|
-
const equinoxMarket = await getConfiguration('Equinox_Markets');
|
|
105
|
-
|
|
106
|
-
await equinoxMarket.promise
|
|
107
|
-
}
|
|
108
|
-
if (equinoxMarket.value) {
|
|
109
|
-
return NewQualificationService
|
|
110
|
-
}
|
|
111
|
-
return OldQualificationService
|
|
104
|
+
const equinoxMarket = await getConfiguration(['Equinox_Markets']);
|
|
105
|
+
return equinoxMarket.active ? NewQualificationService : OldQualificationService;
|
|
112
106
|
}
|
|
113
107
|
|
|
114
108
|
const getExclusiveOfferQualificationId = async product => {
|
|
115
|
-
const equinoxMarket = await getConfiguration('Equinox_Markets');
|
|
116
|
-
|
|
117
|
-
await equinoxMarket.promise
|
|
118
|
-
}
|
|
119
|
-
return equinoxMarket.value ? product.equinoxProductId : product.sku
|
|
109
|
+
const equinoxMarket = await getConfiguration(['Equinox_Markets']);
|
|
110
|
+
return equinoxMarket.active ? product.equinoxProductId : product.sku
|
|
120
111
|
}
|
|
121
112
|
|
|
122
113
|
/**
|