@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.js
CHANGED
|
@@ -375,7 +375,6 @@ var useCalcAutoFreeGift = (cart, autoFreeGiftConfig, customer, lines) => {
|
|
|
375
375
|
}
|
|
376
376
|
return cart;
|
|
377
377
|
}, [lines, cart]);
|
|
378
|
-
console.log("effectiveCart useCalcAutoFreeGift", effectiveCart);
|
|
379
378
|
const { activeCampaign, subtotal } = react.useMemo(() => {
|
|
380
379
|
for (const campaign of autoFreeGiftConfig) {
|
|
381
380
|
const { rule_conditions = [], rule_result } = campaign;
|
|
@@ -391,7 +390,6 @@ var useCalcAutoFreeGift = (cart, autoFreeGiftConfig, customer, lines) => {
|
|
|
391
390
|
all_store_variant: spend_get_reward.main_product?.all_store_variant || false
|
|
392
391
|
}
|
|
393
392
|
);
|
|
394
|
-
console.log("matchedSubtotal useCalcAutoFreeGift", matchedSubtotal);
|
|
395
393
|
if (matchedSubtotal > 0) {
|
|
396
394
|
return { activeCampaign: campaign, subtotal: matchedSubtotal };
|
|
397
395
|
}
|