Skip to content

Commit

Permalink
fix: jsbi error
Browse files Browse the repository at this point in the history
  • Loading branch information
damnnou committed May 21, 2024
1 parent 7c4b363 commit a446892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/swap/SwapChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (<div className="flex flex-col gap-6 w-full h-full relative">

Expand Down

0 comments on commit a446892

Please sign in to comment.