@nuskin/ns-product-lib 2.6.0-cx24-3377.10 → 2.6.0-cx24-3377.11

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