|
|
|
@ -123,9 +123,11 @@ const AccountSummary = (props: Props) => {
|
|
|
|
|
loadingMessage={() => 'Loading...'}
|
|
|
|
|
noOptionsMessage={() => 'Token not found'}
|
|
|
|
|
onChange={(token) => {
|
|
|
|
|
const isAdded = tokens.find(t => t.symbol === token.symbol);
|
|
|
|
|
if (!isAdded) {
|
|
|
|
|
props.addToken(token, account);
|
|
|
|
|
if (token.name) {
|
|
|
|
|
const isAdded = tokens.find(t => t.symbol === token.symbol);
|
|
|
|
|
if (!isAdded) {
|
|
|
|
|
props.addToken(token, account);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
loadOptions={input => props.loadTokens(input, account.network)}
|
|
|
|
@ -140,7 +142,6 @@ const AccountSummary = (props: Props) => {
|
|
|
|
|
getOptionValue={option => option.symbol}
|
|
|
|
|
/>
|
|
|
|
|
</AsyncSelectWrapper>
|
|
|
|
|
|
|
|
|
|
<AddedTokensWrapper>
|
|
|
|
|
{tokens.map(token => (
|
|
|
|
|
<AddedToken
|
|
|
|
|