diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-09 10:55:01 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-09 10:55:01 +0700 |
| commit | bbbd7ccaab3102558dc82cbd051947b0e579360c (patch) | |
| tree | c2a4c7401c36bbc4b78730487e226fb6e38a63af | |
| parent | e33a7e612a3c2c871f6a0a84d0d04d6f6ddc357a (diff) | |
<iman> back to code to avoid conflict
| -rw-r--r-- | src-migrate/hooks/useUtmSource.ts | 1 | ||||
| -rw-r--r-- | src/lib/quotation/components/Quotation.jsx | 2 | ||||
| -rw-r--r-- | src/pages/my/recomendation/components/products-recomendatison.jsx | 4 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src-migrate/hooks/useUtmSource.ts b/src-migrate/hooks/useUtmSource.ts index 41a5f41c..a72fae36 100644 --- a/src-migrate/hooks/useUtmSource.ts +++ b/src-migrate/hooks/useUtmSource.ts @@ -7,6 +7,7 @@ const useUtmSource = () => { const [source, setSource] = useState<string>(); useEffect(() => { + console.log(router.pathname); if (router.pathname) { setSource(UTM_SOURCE[router.pathname as keyof typeof UTM_SOURCE]); diff --git a/src/lib/quotation/components/Quotation.jsx b/src/lib/quotation/components/Quotation.jsx index 5f197d16..8855c6c4 100644 --- a/src/lib/quotation/components/Quotation.jsx +++ b/src/lib/quotation/components/Quotation.jsx @@ -277,7 +277,9 @@ const Quotation = () => { estimated_arrival_days: splitDuration(etd), delivery_service_type: selectedExpedisiService, }; + console.log('data checkout', data); const isSuccess = await checkoutApi({ data }); + console.log('isSuccess', isSuccess); setIsLoading(false); if (isSuccess?.id) { for (const product of products) deleteItemCart({ productId: product.id }); diff --git a/src/pages/my/recomendation/components/products-recomendatison.jsx b/src/pages/my/recomendation/components/products-recomendatison.jsx index a610cf0d..d39d2a99 100644 --- a/src/pages/my/recomendation/components/products-recomendatison.jsx +++ b/src/pages/my/recomendation/components/products-recomendatison.jsx @@ -80,6 +80,7 @@ const ProductsRecomendation = ({ id }) => { } }); + console.log('ini result', searchProduct.data.response); } return resultMapping; @@ -111,6 +112,7 @@ const ProductsRecomendation = ({ id }) => { setIsLoading(false); } else { setIsLoading(false); + console.log('No excel data available'); } }; @@ -127,6 +129,7 @@ const ProductsRecomendation = ({ id }) => { const jsonData = XLSX.utils.sheet_to_json(worksheet); setExcelData(jsonData); + console.log('ini json data', jsonData); setIsLoading(false); }; @@ -149,6 +152,7 @@ const ProductsRecomendation = ({ id }) => { }; const handlingOtherRec = ({ product }) => { + console.log('ini product', product); const result = async () => await searchRecomendation({ product, index: 0, operator: 'OR' }); |
