Commit ea66b8b9 authored by eddie's avatar eddie Committed by GitHub

fix: null check in lists code (#7248)

parent 1eab4291
......@@ -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 {}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment