@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.
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/hooks/index.mjs
CHANGED
|
@@ -774,10 +774,10 @@ var trackBuyNowGA = ({
|
|
|
774
774
|
return;
|
|
775
775
|
}
|
|
776
776
|
const { variant } = lineItems[0];
|
|
777
|
-
const currencyCode = variant.price?.currencyCode;
|
|
777
|
+
const currencyCode = variant.product?.price?.currencyCode || variant.price?.currencyCode;
|
|
778
778
|
const totalPrice = lineItems?.reduce(
|
|
779
779
|
(prev, { variant: variant2 }) => prev.plus(
|
|
780
|
-
variant2?.finalPrice?.amount ?? variant2?.compareAtPrice?.amount ??
|
|
780
|
+
variant2?.finalPrice?.amount ?? variant2?.compareAtPrice?.amount ?? variant2?.price?.amount ?? 0
|
|
781
781
|
),
|
|
782
782
|
new Decimal2(0)
|
|
783
783
|
).toNumber();
|