From 76b66c348cd1deb7b617547b145992859fc70623 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Tue, 6 Nov 2018 16:13:07 +0100 Subject: [PATCH] Fixed browser select crash --- src/views/Wallet/views/Account/Summary/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/Wallet/views/Account/Summary/index.js b/src/views/Wallet/views/Account/Summary/index.js index 90da7d41..79bc6831 100644 --- a/src/views/Wallet/views/Account/Summary/index.js +++ b/src/views/Wallet/views/Account/Summary/index.js @@ -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} /> - {tokens.map(token => (