Skip to content

Commit

Permalink
Remove unnecessary memoization that causes a caching issue
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed May 19, 2020
1 parent 81b0633 commit 0e72f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/Tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ export function useTokenByAddressAndAutomaticallyAdd(tokenAddress?: string): Tok
}
}, [tokenAddress, allTokens, fetchTokenByAddress, addToken])

return useMemo(() => allTokens?.[tokenAddress], [allTokens, tokenAddress])
return allTokens?.[tokenAddress]
}

0 comments on commit 0e72f1c

Please sign in to comment.