@nuskin/ns-product-lib 2.13.0-cx24-100723.2 → 2.13.0-cx24-100723.3
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.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-100723.2...v2.13.0-cx24-100723.3) (2023-10-10)
|
2
|
+
|
3
|
+
|
4
|
+
### New
|
5
|
+
|
6
|
+
* Handle adding variants from bundle ([cc8f8e0](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/cc8f8e04d44d6a84894122a7e63cd72b48b724b0))
|
7
|
+
|
1
8
|
# [2.13.0-cx24-100723.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-100723.1...v2.13.0-cx24-100723.2) (2023-10-07)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
@@ -13,9 +13,9 @@ function childSKUBundle(kits, product, identifier) {
|
|
13
13
|
if (personalOffer.active) {
|
14
14
|
const skuAdd = personalOffer.products.filter((p) => {
|
15
15
|
return p.sku === identifier
|
16
|
-
})
|
16
|
+
})[0]
|
17
17
|
sku = product.sku.filter((sku) => {
|
18
|
-
return sku.identifier == skuAdd[
|
18
|
+
return sku.identifier == skuAdd.variantSelected[product.identifier]
|
19
19
|
})[0]
|
20
20
|
} else {
|
21
21
|
sku = product.sku.filter(sku => sku.default)[0];
|