@nuskin/ns-product-lib 2.13.0-cx24-5107.7 → 2.13.0-cx24-5107.8

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.13.0-cx24-5107.8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.7...v2.13.0-cx24-5107.8) (2023-10-03)
2
+
3
+
4
+ ### Fix
5
+
6
+ * variants label ([4d217a2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/4d217a2e8c390cb12e5c3f379bd7296f10df20aa))
7
+
1
8
  # [2.13.0-cx24-5107.7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.6...v2.13.0-cx24-5107.7) (2023-09-29)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.13.0-cx24-5107.7",
3
+ "version": "2.13.0-cx24-5107.8",
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": {
@@ -165,7 +165,6 @@ function mapProduct(product, market, locale, config) {
165
165
 
166
166
  //map only if it is normal product
167
167
  if (product.variants && !kitBundleProducts) {
168
- console.log(variants);
169
168
  productDetail.variants = mapVariants(product);
170
169
  }
171
170
 
@@ -248,7 +247,7 @@ function mapVariants(product) {
248
247
  "size": variant.size,
249
248
  "status": mapProductStatus(variant.status.status),
250
249
  "variantType": "Other",
251
- "variantDropdownLabel": product.variantSelectLabel || '',
250
+ "variantDropdownLabel": variant.variantLabel || '',
252
251
  "variantDropdownPlaceholder": "Select Type",
253
252
  "variantsLabel": variant.variantLabel || '',
254
253
  "variants": [],