@nuskin/ns-product-lib 2.13.0-cx24-100723.7 → 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,10 @@
|
|
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
|
+
|
1
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)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
@@ -15,7 +15,8 @@ function childSKUBundle(kits, product) {
|
|
15
15
|
const productWithVariant = personalOffer.products.filter((sku) => sku.variantSelected !== null)[0]
|
16
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];
|