Skip to content

Commit

Permalink
Fix pools
Browse files Browse the repository at this point in the history
  • Loading branch information
msteiner96 committed Jun 19, 2023
1 parent a5f8cf3 commit acb8cd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/Dex/Pools/PoolsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit acb8cd7

Please sign in to comment.