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