@nuskin/product-components 3.3.9 → 3.3.10
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 +14 -0
- package/mixins/NsProductMixin.js +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.3.10](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.3.9...v3.3.10) (2023-04-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Fix
|
|
5
|
+
|
|
6
|
+
* Multi-variant product's name is not reflecting the variant name ([7a5aedd](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/7a5aedd705ad0029608cbafd838757b966e6ecad))
|
|
7
|
+
|
|
8
|
+
## [3.3.10-cx24-3705.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.3.9...v3.3.10-cx24-3705.1) (2023-04-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Fix
|
|
12
|
+
|
|
13
|
+
* product's name is not reflecting the variant name ([f76abc9](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/f76abc9baa2f40c947c0cc9c936fd3d23d0f2be9))
|
|
14
|
+
|
|
1
15
|
## [3.3.9](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.3.8...v3.3.9) (2023-04-10)
|
|
2
16
|
|
|
3
17
|
|
package/mixins/NsProductMixin.js
CHANGED
|
@@ -555,9 +555,15 @@ const NsProductMixin = {
|
|
|
555
555
|
this.product = activeProduct;
|
|
556
556
|
}
|
|
557
557
|
|
|
558
|
-
this.
|
|
559
|
-
this.
|
|
560
|
-
|
|
558
|
+
if (Object.keys(this.product.variants).length > 1) {
|
|
559
|
+
this.title = this.stripNonWhiteListHTML(
|
|
560
|
+
this.product.variants[this.activeSku].title
|
|
561
|
+
);
|
|
562
|
+
} else {
|
|
563
|
+
this.title = this.stripNonWhiteListHTML(
|
|
564
|
+
this.product.getProductSearchTitle()
|
|
565
|
+
);
|
|
566
|
+
}
|
|
561
567
|
this.description = this.product.longDescr;
|
|
562
568
|
|
|
563
569
|
this.isBaseSku = this.product.isBase();
|