diff options
Diffstat (limited to 'src/lib/checkout')
| -rw-r--r-- | src/lib/checkout/components/Checkout.jsx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx index be490d32..5256a328 100644 --- a/src/lib/checkout/components/Checkout.jsx +++ b/src/lib/checkout/components/Checkout.jsx @@ -149,9 +149,6 @@ const Checkout = () => { setLoadingVoucher(true); const productCategories = products ?.reduce((categories, product) => { - console.log('Processing product:', product.name); - console.log('Product categories:', product.categories); - if (product.categories && Array.isArray(product.categories)) { product.categories.forEach((category) => { if (category.id && !categories.includes(category.id)) { @@ -163,15 +160,12 @@ const Checkout = () => { }, []) .join(','); - console.log('Final categories string:', productCategories); - let dataVoucher = await getVoucher(auth?.id, { source: query, type: 'all,brand', partner_id: auth?.partnerId, voucher_category: productCategories, // Add the product categories }); - console.log('All vouchers received:', dataVoucher); SetListVoucher(dataVoucher); let dataVoucherShipping = await getVoucher(auth?.id, { @@ -200,8 +194,6 @@ const Checkout = () => { }, []) .join(','); - console.log('Voucher code search with categories:', productCategories); - let dataVoucher = await getVoucher(auth?.id, { source: query, code: code, |
