@nuskin/ns-product-lib 2.15.0-cx24-6364.1 → 2.15.0-cx24-6364.2

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.15.0-cx24-6364.1",
3
+ "version": "2.15.0-cx24-6364.2",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -24,11 +24,14 @@ const ProductData = {
24
24
  const localeMarket = `${locale}_${market}`;
25
25
 
26
26
  const config = (await getConfiguration(['Equinox_Markets'])).Equinox_Markets;
27
- console.log('-configs-',config);
28
27
  if (config.active) {
29
- return (config.MySite_graphql_active_list.includes[market]) ? await getProduct(skus[0], market, locale, config) : await this.getProductFromEquinox(skus, localeMarket, config)
28
+ return (config.MySite_graphql_active_list.includes(market)) ?
29
+ await getProduct(skus[0], market, locale, config) :
30
+ await this.getProductFromEquinox(skus, localeMarket, config)
30
31
  } else {
31
- return (config.MySite_graphql_active_list.includes[market]) ? await getProduct(skus[0], market, locale, config) : await this.getProductFromLegacy(skus, localeMarket);
32
+ return (config.MySite_graphql_active_list.includes(market)) ?
33
+ await getProduct(skus[0], market, locale, config) :
34
+ await this.getProductFromLegacy(skus, localeMarket);
32
35
  }
33
36
 
34
37
  },