From acb8cd7aaa026ec3c1e2d735bcab6f3490791839 Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Mon, 19 Jun 2023 16:53:06 +0200 Subject: [PATCH] Fix pools --- components/Dex/Pools/PoolsCard.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/Dex/Pools/PoolsCard.tsx b/components/Dex/Pools/PoolsCard.tsx index b5c1aec6..c7dff009 100644 --- a/components/Dex/Pools/PoolsCard.tsx +++ b/components/Dex/Pools/PoolsCard.tsx @@ -40,6 +40,9 @@ interface PoolCardProps { function PoolCard({ allPools, assetPrices, pool }: PoolCardProps) { const currency = useRecoilValue(currencyAtom); + if (!allPools[pool.address]) { + return null; + } const [token1, token2] = allPools[pool.address]; const tokenPrice1 = getAssetPrice(token1, assetPrices); const tokenPrice2 = getAssetPrice(token2, assetPrices);