@anker-in/shopify-react 0.1.1-beta.29 → 0.1.1-beta.30

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.
@@ -783,10 +783,10 @@ var trackBuyNowGA = ({
783
783
  return;
784
784
  }
785
785
  const { variant } = lineItems[0];
786
- const currencyCode = variant.price?.currencyCode;
786
+ const currencyCode = variant.product?.price?.currencyCode || variant.price?.currencyCode;
787
787
  const totalPrice = lineItems?.reduce(
788
788
  (prev, { variant: variant2 }) => prev.plus(
789
- variant2?.finalPrice?.amount ?? variant2?.compareAtPrice?.amount ?? (variant2?.price?.amount || 0)
789
+ variant2?.finalPrice?.amount ?? variant2?.compareAtPrice?.amount ?? variant2?.price?.amount ?? 0
790
790
  ),
791
791
  new Decimal2__default.default(0)
792
792
  ).toNumber();