Skip to content

Commit

Permalink
Fix return type of useIndexerPairData
Browse files Browse the repository at this point in the history
  • Loading branch information
dib542 committed Jul 25, 2022
1 parent 6ede7c0 commit 2e5d4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/web3/indexerProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export function useIndexerPairData(
const [token0, token1] = [tokenA, tokenB].sort();
const pairID = token0 && token1 && getPairID(token0, token1);
return {
data: pairID && pairs?.[pairID],
data: pairID ? pairs?.[pairID] : undefined,
error,
isValidating,
};
Expand Down

0 comments on commit 2e5d4eb

Please sign in to comment.