aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-20 22:31:34 +0800
committerDan <danjm.com@gmail.com>2017-10-20 22:31:34 +0800
commitb25c73a866140e362ea27d455101d07ccf1a56e6 (patch)
treeac8de5fa96ee3b9035099006d1c83dc177659b99 /ui
parent89573533b8da75138bddffbadbaeff6f9eb68001 (diff)
downloadtangerine-wallet-browser-b25c73a866140e362ea27d455101d07ccf1a56e6.tar
tangerine-wallet-browser-b25c73a866140e362ea27d455101d07ccf1a56e6.tar.gz
tangerine-wallet-browser-b25c73a866140e362ea27d455101d07ccf1a56e6.tar.bz2
tangerine-wallet-browser-b25c73a866140e362ea27d455101d07ccf1a56e6.tar.lz
tangerine-wallet-browser-b25c73a866140e362ea27d455101d07ccf1a56e6.tar.xz
tangerine-wallet-browser-b25c73a866140e362ea27d455101d07ccf1a56e6.tar.zst
tangerine-wallet-browser-b25c73a866140e362ea27d455101d07ccf1a56e6.zip
Only show erc20 tokens in add token search.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/add-token.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/add-token.js b/ui/app/add-token.js
index 3ef9b6814..e313babf3 100644
--- a/ui/app/add-token.js
+++ b/ui/app/add-token.js
@@ -7,7 +7,9 @@ const Fuse = require('fuse.js')
const contractMap = require('eth-contract-metadata')
const TokenBalance = require('./components/token-balance')
const Identicon = require('./components/identicon')
-const contractList = Object.entries(contractMap).map(([ _, tokenData]) => tokenData)
+const contractList = Object.entries(contractMap)
+ .map(([ _, tokenData]) => tokenData)
+ .filter(tokenData => Boolean(tokenData.erc20))
const fuse = new Fuse(contractList, {
shouldSort: true,
threshold: 0.45,