@anker-in/shopify-react 0.1.1-beta.31 → 0.1.1-beta.32
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 +0 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +0 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/dist/provider/index.js +2 -3
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +2 -3
- package/dist/provider/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -438,7 +438,6 @@ var useCalcAutoFreeGift = (cart, autoFreeGiftConfig, customer, lines) => {
|
|
|
438
438
|
}
|
|
439
439
|
return cart;
|
|
440
440
|
}, [lines, cart]);
|
|
441
|
-
console.log("effectiveCart useCalcAutoFreeGift", effectiveCart);
|
|
442
441
|
const { activeCampaign, subtotal } = useMemo(() => {
|
|
443
442
|
for (const campaign of autoFreeGiftConfig) {
|
|
444
443
|
const { rule_conditions = [], rule_result } = campaign;
|
|
@@ -454,7 +453,6 @@ var useCalcAutoFreeGift = (cart, autoFreeGiftConfig, customer, lines) => {
|
|
|
454
453
|
all_store_variant: spend_get_reward.main_product?.all_store_variant || false
|
|
455
454
|
}
|
|
456
455
|
);
|
|
457
|
-
console.log("matchedSubtotal useCalcAutoFreeGift", matchedSubtotal);
|
|
458
456
|
if (matchedSubtotal > 0) {
|
|
459
457
|
return { activeCampaign: campaign, subtotal: matchedSubtotal };
|
|
460
458
|
}
|
|
@@ -3269,7 +3267,8 @@ function CartProvider({
|
|
|
3269
3267
|
cart,
|
|
3270
3268
|
mutateCart,
|
|
3271
3269
|
isCartLoading: isCartLoading || isCodeChanging,
|
|
3272
|
-
setLoadingState
|
|
3270
|
+
setLoadingState,
|
|
3271
|
+
metafieldIdentifiers
|
|
3273
3272
|
});
|
|
3274
3273
|
const removeCustomAttributes = useCallback(
|
|
3275
3274
|
(attributes2) => {
|