fix: null check in lists code (#7248)

This commit is contained in:
eddie 2023-08-30 11:41:40 -07:00 committed by GitHub
parent 1eab4291f6
commit ea66b8b959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -112,7 +112,7 @@ export function useUnsupportedTokens(): { [address: string]: Token } {
const listUrl = getChainInfo(chainId).defaultListUrl
const { current: list } = listsByUrl[listUrl]
const list = listsByUrl[listUrl]?.current
if (!list) {
return {}
}