@nuskin/ns-product-lib 2.13.0-cx24-100723.6 → 2.13.0-cx24-100723.8
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# [2.13.0-cx24-100723.8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-100723.7...v2.13.0-cx24-100723.8) (2023-10-10)
|
2
|
+
|
3
|
+
|
4
|
+
### New
|
5
|
+
|
6
|
+
* Handle adding variants from bundle ([9188040](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/9188040aa88ccbccd28e28a471c786b9395ba123))
|
7
|
+
|
8
|
+
# [2.13.0-cx24-100723.7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-100723.6...v2.13.0-cx24-100723.7) (2023-10-10)
|
9
|
+
|
10
|
+
|
11
|
+
### New
|
12
|
+
|
13
|
+
* Handle adding variants from bundle ([b2296da](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/b2296daef813ccec6088e4d80ba8360f0acd6c43))
|
14
|
+
|
1
15
|
# [2.13.0-cx24-100723.6](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-100723.5...v2.13.0-cx24-100723.6) (2023-10-10)
|
2
16
|
|
3
17
|
|
package/package.json
CHANGED
@@ -13,9 +13,10 @@ function childSKUBundle(kits, product) {
|
|
13
13
|
if (personalOffer.active) {
|
14
14
|
//get the products with variants selected
|
15
15
|
const productWithVariant = personalOffer.products.filter((sku) => sku.variantSelected !== null)[0]
|
16
|
-
if (productWithVariant
|
16
|
+
if (productWithVariant !== null) {
|
17
17
|
sku = product.sku.filter((sku) => {
|
18
|
-
|
18
|
+
console.log('Checking sku ' + sku)
|
19
|
+
return sku.identifier === productWithVariant.variantSelected[product.identifier]
|
19
20
|
})[0]
|
20
21
|
} else {
|
21
22
|
sku = product.sku.filter(sku => sku.default)[0];
|