make sure token info is loaded on swap page
This commit is contained in:
parent
cc3a971c2b
commit
aaa5491896
|
@ -94,9 +94,13 @@ const SwapTokenSelect = ({
|
|||
}, [])
|
||||
|
||||
const tokenInfos = useMemo(() => {
|
||||
return sortedTokenMints.filter((token) => {
|
||||
return !token?.name || !token?.symbol ? false : true
|
||||
})
|
||||
if (sortedTokenMints?.length) {
|
||||
return sortedTokenMints.filter((token) => {
|
||||
return !token?.name || !token?.symbol ? false : true
|
||||
})
|
||||
} else {
|
||||
return []
|
||||
}
|
||||
}, [sortedTokenMints])
|
||||
|
||||
const handleUpdateSearch = (e) => {
|
||||
|
|
Loading…
Reference in New Issue