@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.js
CHANGED
|
@@ -446,7 +446,6 @@ var useCalcAutoFreeGift = (cart, autoFreeGiftConfig, customer, lines) => {
|
|
|
446
446
|
}
|
|
447
447
|
return cart;
|
|
448
448
|
}, [lines, cart]);
|
|
449
|
-
console.log("effectiveCart useCalcAutoFreeGift", effectiveCart);
|
|
450
449
|
const { activeCampaign, subtotal } = react.useMemo(() => {
|
|
451
450
|
for (const campaign of autoFreeGiftConfig) {
|
|
452
451
|
const { rule_conditions = [], rule_result } = campaign;
|
|
@@ -462,7 +461,6 @@ var useCalcAutoFreeGift = (cart, autoFreeGiftConfig, customer, lines) => {
|
|
|
462
461
|
all_store_variant: spend_get_reward.main_product?.all_store_variant || false
|
|
463
462
|
}
|
|
464
463
|
);
|
|
465
|
-
console.log("matchedSubtotal useCalcAutoFreeGift", matchedSubtotal);
|
|
466
464
|
if (matchedSubtotal > 0) {
|
|
467
465
|
return { activeCampaign: campaign, subtotal: matchedSubtotal };
|
|
468
466
|
}
|
|
@@ -3277,7 +3275,8 @@ function CartProvider({
|
|
|
3277
3275
|
cart,
|
|
3278
3276
|
mutateCart,
|
|
3279
3277
|
isCartLoading: isCartLoading || isCodeChanging,
|
|
3280
|
-
setLoadingState
|
|
3278
|
+
setLoadingState,
|
|
3279
|
+
metafieldIdentifiers
|
|
3281
3280
|
});
|
|
3282
3281
|
const removeCustomAttributes = react.useCallback(
|
|
3283
3282
|
(attributes2) => {
|