diff --git a/src/utils/functions/get1InchRoutes.ts b/src/utils/functions/get1InchRoutes.ts index 8630ad3d..0b5e88ee 100644 --- a/src/utils/functions/get1InchRoutes.ts +++ b/src/utils/functions/get1InchRoutes.ts @@ -30,7 +30,10 @@ export const get1InchRoutes = async ( const tokenDecimals = tokenData?.decimals || 18; const address = type === "deposit" ? toAddress : fromAddress; - if (fromAddress.toLowerCase() === toAddress.toLowerCase() || !amount) { + if ( + fromAddress.toLowerCase() === toAddress.toLowerCase() || + !Number(amount) + ) { return { symbol: symbol as string, address: address,