@nuskin/ns-shop 7.9.0-mdigi-6056.1 → 7.9.0-mdigi-6056.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "7.9.0-mdigi-6056.1",
3
+ "version": "7.9.0-mdigi-6056.2",
4
4
  "description": "The description that will amaze and astound your audience when they read it",
5
5
  "main": "src/shop.js",
6
6
  "scripts": {
@@ -377,7 +377,8 @@ export default function CartItem(cartItemData) {
377
377
  retVal.variants = this.product.variants;
378
378
  retVal.marketAttributes = this.product.marketAttributes;
379
379
  retVal.product_image_url = this.product.fullImage;
380
- retVal.taxonomy = this.product.categories?.[0]?.displayName || 'Nu Skin';
380
+ retVal.taxonomy = (this.product.categories && this.product.categories[0] &&
381
+ this.product.categories[0].displayName) || 'Nu Skin';
381
382
  retVal.salesPrice = AccountManager.isLoggedIn()? this.salesPrice() : null;
382
383
  retVal.unitPrice = AccountManager.isLoggedIn()? this.unitPrice() : null;
383
384