fix: null check in lists code (#7248)
This commit is contained in:
parent
1eab4291f6
commit
ea66b8b959
@ -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 {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user