From b1c97ae511a9105c7cf3734b5a5da68840857f85 Mon Sep 17 00:00:00 2001 From: jinoosss Date: Fri, 1 Dec 2023 21:47:07 +0900 Subject: [PATCH] feat: Add log --- packages/web/src/hooks/swap/use-swap.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/web/src/hooks/swap/use-swap.tsx b/packages/web/src/hooks/swap/use-swap.tsx index 6def72a6b..84f7fe7d7 100644 --- a/packages/web/src/hooks/swap/use-swap.tsx +++ b/packages/web/src/hooks/swap/use-swap.tsx @@ -47,6 +47,7 @@ export const useSwap = ({ return null; } const pools = await poolRepository.getRPCPools(); + console.log("pools", pools); swapRouterRepository.updatePools(pools); return swapRouterRepository.estimateSwapRoute({ @@ -59,7 +60,9 @@ export const useSwap = ({ setEstimatedRoutes(response.estimatedRoutes); setEstimatedAmount(response.amount); return response; - }).catch(() => { + }).catch(e => { + + console.log(e); setEstimatedRoutes([]); setEstimatedAmount(null); return null;