Fix error when switching from mainnet to testnet

This commit is contained in:
Gary Wang 2020-08-19 19:43:30 -07:00
parent 1de031071b
commit 63a3f22b25
1 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,7 @@ export default function AddTokenDialog({ open, onClose }) {
/>
</Tabs>
)}
{tab === 'manual' ? (
{tab === 'manual' || !popularTokens ? (
<React.Fragment>
<TextField
label="Token Mint Address"
@ -139,6 +139,7 @@ export default function AddTokenDialog({ open, onClose }) {
<List disablePadding>
{popularTokens.map((token) => (
<TokenListItem
key={token.mintAddress}
{...token}
onSubmit={onSubmit}
disalbed={sending}