@nuskin/ns-product-lib 2.13.0-cx24-100723.4 → 2.13.0-cx24-100723.5
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.13.0-cx24-100723.5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-100723.4...v2.13.0-cx24-100723.5) (2023-10-10)
|
2
|
+
|
3
|
+
|
4
|
+
### New
|
5
|
+
|
6
|
+
* Handle adding variants from bundle ([4271ffd](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/4271ffd972fd38aca44c4f23fd6d7daa2a1f2e0f))
|
7
|
+
|
1
8
|
# [2.13.0-cx24-100723.4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-100723.3...v2.13.0-cx24-100723.4) (2023-10-10)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
@@ -12,7 +12,7 @@ function childSKUBundle(kits, product) {
|
|
12
12
|
let personalOffer = JSON.parse(sessionStorage.getItem('personalOffer'))
|
13
13
|
if (personalOffer.active) {
|
14
14
|
//get the products with variants selected
|
15
|
-
const productWithVariant = personalOffer.products.filter((sku) => sku.variantSelected
|
15
|
+
const productWithVariant = personalOffer.products.filter((sku) => sku.variantSelected !== null)[0]
|
16
16
|
|
17
17
|
sku = product.sku.filter((sku) => {
|
18
18
|
return sku.identifier == productWithVariant.variantSelected[product.identifier]
|