From a9a92c02e24bf77b9e490be51d7002cc2ef41bf1 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Thu, 8 May 2025 17:31:04 +0700 Subject: Remove log --- src/lib/checkout/components/Checkout.jsx | 8 -------- 1 file changed, 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, -- cgit v1.2.3