@nuskin/product-components 3.17.7 → 3.17.9

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.
@@ -863,7 +863,7 @@ const NsProductMixin = {
863
863
  const isGraphQLActive = equinoxMarketsConfig.MySite_graphql_active;
864
864
 
865
865
  const options = {
866
- isEqPromotion: isEquinoxEnabled
866
+ isEqPromotion: isGraphQLActive
867
867
  };
868
868
 
869
869
  this.product.setPriceAndPvFromType(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/product-components",
3
- "version": "3.17.7",
3
+ "version": "3.17.9",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,7 +30,7 @@
30
30
  "@nuskin/ns-icon": "^2.12.0",
31
31
  "@nuskin/ns-loyalty-web": "1.5.6",
32
32
  "@nuskin/ns-product-lib": "2.17.5",
33
- "@nuskin/ns-shop": "7.0.6",
33
+ "@nuskin/ns-shop": "7.0.8",
34
34
  "@nuskin/product-recommendation": "2.0.1",
35
35
  "axios": "1.6.7",
36
36
  "lodash": "4.17.21",
@@ -9,7 +9,10 @@ import { isNullOrEmpty } from "@nuskin/ns-common-lib";
9
9
  import { ProductDataService } from "@nuskin/ns-product";
10
10
  import { Product, PriceType } from "@nuskin/ns-product-lib";
11
11
  import { equinoxLocalStorage } from "@nuskin/ns-util";
12
- import { getConfiguration } from "@nuskin/configuration-sdk";
12
+ import {
13
+ getConfiguration,
14
+ getCachedConfiguration
15
+ } from "@nuskin/configuration-sdk";
13
16
 
14
17
  class ProductDataBatch {
15
18
  constructor(id, skus) {
@@ -269,9 +272,7 @@ if (!NsProductDataService) {
269
272
  return;
270
273
  }
271
274
 
272
- const equinoxMarketConfig = (
273
- await getConfiguration(["Equinox_Markets"])
274
- ).Equinox_Markets;
275
+ const equinoxMarketConfig = getCachedConfiguration("Equinox_Markets");
275
276
 
276
277
  // product data response has products
277
278
  if (productData.count && productData.products.length) {
@@ -279,7 +280,7 @@ if (!NsProductDataService) {
279
280
  for (const product of productData.products) {
280
281
  // do a last quick check to make sure we don't add duplicate products
281
282
  product.setPriceAndPvFromType(this.getPriceType(), null, {
282
- isEqPromotion: equinoxMarketConfig.active
283
+ isEqPromotion: equinoxMarketConfig.MySite_graphql_active
283
284
  });
284
285
  this.products.push(product);
285
286
  this.$emit("product-changed", product);