@nuskin/product-components 3.20.0-mdigi-7127.4 → 3.20.0-mdigi-7127.5

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.
@@ -200,14 +200,14 @@ export default {
200
200
  name: product.title,
201
201
  price: product.price,
202
202
  taxonomy:
203
- product.categories?.[0]?.displayName || "all_products",
203
+ (product.categories && product.categories[0] && product.categories[0].displayName) || "all_products",
204
204
  sales_price: this.isLoggedIn
205
205
  ? isWholesale
206
- ? product?.price?.wholesaleSales ||
207
- product?.price?.wholesale
208
- : product?.price?.retailSales || product?.price?.retail
206
+ ? (product && product.price && product.price.wholesaleSales) ||
207
+ (product && product.price && product.price.wholesale)
208
+ : (product && product.price && product.price.retailSales) || (product && product.price && product.price.retail)
209
209
  : null,
210
- unit_price: this.isLoggedIn ? product?.price : null
210
+ unit_price: this.isLoggedIn ? (product && product.price) : null
211
211
  }))
212
212
  }
213
213
  });
package/docs/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- # [3.20.0-mdigi-7127.4](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.20.0-mdigi-7127.3...v3.20.0-mdigi-7127.4) (2026-01-07)
1
+ # [3.20.0-mdigi-7127.5](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.20.0-mdigi-7127.4...v3.20.0-mdigi-7127.5) (2026-01-08)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/product-components",
3
- "version": "3.20.0-mdigi-7127.4",
3
+ "version": "3.20.0-mdigi-7127.5",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {