aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-20 22:18:01 +0800
committerDan <danjm.com@gmail.com>2017-10-20 22:18:01 +0800
commit89573533b8da75138bddffbadbaeff6f9eb68001 (patch)
tree5856282a59d444c2ac31249cfc414233b8dad44b
parent79be956be9f5297d6d601941e50d5ae4eca58560 (diff)
downloadtangerine-wallet-browser-89573533b8da75138bddffbadbaeff6f9eb68001.tar
tangerine-wallet-browser-89573533b8da75138bddffbadbaeff6f9eb68001.tar.gz
tangerine-wallet-browser-89573533b8da75138bddffbadbaeff6f9eb68001.tar.bz2
tangerine-wallet-browser-89573533b8da75138bddffbadbaeff6f9eb68001.tar.lz
tangerine-wallet-browser-89573533b8da75138bddffbadbaeff6f9eb68001.tar.xz
tangerine-wallet-browser-89573533b8da75138bddffbadbaeff6f9eb68001.tar.zst
tangerine-wallet-browser-89573533b8da75138bddffbadbaeff6f9eb68001.zip
Fixes add token search.
-rw-r--r--ui/app/add-token.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/app/add-token.js b/ui/app/add-token.js
index 90edc8de1..3ef9b6814 100644
--- a/ui/app/add-token.js
+++ b/ui/app/add-token.js
@@ -105,6 +105,7 @@ AddTokenScreen.prototype.tokenAddressDidChange = function (e) {
}
AddTokenScreen.prototype.checkExistingAddresses = function (address) {
+ if (!address) return false
const tokensList = this.props.tokens
const matchesAddress = existingToken => {
return existingToken.address.toLowerCase() === address.toLowerCase()