@nuskin/ns-product-lib 2.6.0-cx24-3377.9 → 2.6.0-cx24-3377.10
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/product.js +2 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [2.6.0-cx24-3377.10](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.0-cx24-3377.9...v2.6.0-cx24-3377.10) (2023-03-09)
|
2
|
+
|
3
|
+
|
4
|
+
### New
|
5
|
+
|
6
|
+
* Fix multiple variants not loading properly (CX24-3377) ([1b08b2a](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/1b08b2ad4ea7bdceca494f6121f14f74236afb97))
|
7
|
+
|
1
8
|
# [2.6.0-cx24-3377.9](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.0-cx24-3377.8...v2.6.0-cx24-3377.9) (2023-03-09)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/product.js
CHANGED
@@ -429,7 +429,8 @@ const Product = function (productData) {
|
|
429
429
|
|
430
430
|
this.isBase = function () {
|
431
431
|
if (this.equinoxProductId != "") {
|
432
|
-
|
432
|
+
if (this.sku == Object.keys(this.variants)[0])
|
433
|
+
return (Object.keys(this.variants).length) ? true : false
|
433
434
|
}
|
434
435
|
return this.sku.substring(2, 4) === "55";
|
435
436
|
};
|