@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/hooks/index.mjs
CHANGED
|
@@ -366,7 +366,6 @@ var useCalcAutoFreeGift = (cart, autoFreeGiftConfig, customer, lines) => {
|
|
|
366
366
|
}
|
|
367
367
|
return cart;
|
|
368
368
|
}, [lines, cart]);
|
|
369
|
-
console.log("effectiveCart useCalcAutoFreeGift", effectiveCart);
|
|
370
369
|
const { activeCampaign, subtotal } = useMemo(() => {
|
|
371
370
|
for (const campaign of autoFreeGiftConfig) {
|
|
372
371
|
const { rule_conditions = [], rule_result } = campaign;
|
|
@@ -382,7 +381,6 @@ var useCalcAutoFreeGift = (cart, autoFreeGiftConfig, customer, lines) => {
|
|
|
382
381
|
all_store_variant: spend_get_reward.main_product?.all_store_variant || false
|
|
383
382
|
}
|
|
384
383
|
);
|
|
385
|
-
console.log("matchedSubtotal useCalcAutoFreeGift", matchedSubtotal);
|
|
386
384
|
if (matchedSubtotal > 0) {
|
|
387
385
|
return { activeCampaign: campaign, subtotal: matchedSubtotal };
|
|
388
386
|
}
|