@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "6.4.11",
3
+ "version": "6.4.12",
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": {
@@ -101,22 +101,13 @@ const awaitForConfig = async () => {
101
101
  };
102
102
 
103
103
  const getQualificationService = async () => {
104
- const equinoxMarket = await getConfiguration('Equinox_Markets');
105
- if (!equinoxMarket.loaded) {
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
- if (!equinoxMarket.loaded) {
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
  /**