From a44689252939791214524da7f533a93b7f9855ad Mon Sep 17 00:00:00 2001 From: damnnou Date: Tue, 21 May 2024 11:09:44 +0300 Subject: [PATCH] fix: jsbi error --- src/components/swap/SwapChart/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/swap/SwapChart/index.tsx b/src/components/swap/SwapChart/index.tsx index 54b1cc1..3a9f9af 100644 --- a/src/components/swap/SwapChart/index.tsx +++ b/src/components/swap/SwapChart/index.tsx @@ -300,7 +300,7 @@ const SwapChart = () => { })) }, [currencies.INPUT, currencies.OUTPUT, chartPair]) - if (!isPoolExists && !poolAddress || JSBI.equal(mintInfo.pool?.liquidity as JSBI, ZERO)) return null; + if (!isPoolExists && !poolAddress || (mintInfo.pool && JSBI.equal(mintInfo.pool.liquidity, ZERO))) return null; return (