Skip to content

Commit

Permalink
position details crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vnaysngh-mudrex committed Feb 9, 2024
1 parent 0ffb365 commit 1883dbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/usePools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ export function usePoolAddress(
currencyB: Currency | undefined,
feeAmount: FeeAmount | undefined
): string | undefined {
const { chainId } = useAccountDetails()
return useMemo(() => {
const { chainId } = useAccountDetails()
if (currencyA && currencyB && feeAmount && chainId) {
const tokenA = currencyA.wrapped
const tokenB = currencyB.wrapped
Expand All @@ -266,5 +266,5 @@ export function usePoolAddress(
}

return undefined
}, [currencyA, currencyB, feeAmount])
}, [currencyA, currencyB, feeAmount, chainId])
}

0 comments on commit 1883dbf

Please sign in to comment.