aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2019-04-18 07:29:45 +0800
committerDan Miller <danjm.com@gmail.com>2019-04-18 07:29:45 +0800
commit8c075b71586761aa7e813c7fb9ddddfa98f3a84a (patch)
tree1bfb6d12670c6422d0d9f915b94730eb2c2a5f96
parent1ba7afe34beccca3d177412f55e5bbac8309520f (diff)
downloadtangerine-wallet-browser-8c075b71586761aa7e813c7fb9ddddfa98f3a84a.tar
tangerine-wallet-browser-8c075b71586761aa7e813c7fb9ddddfa98f3a84a.tar.gz
tangerine-wallet-browser-8c075b71586761aa7e813c7fb9ddddfa98f3a84a.tar.bz2
tangerine-wallet-browser-8c075b71586761aa7e813c7fb9ddddfa98f3a84a.tar.lz
tangerine-wallet-browser-8c075b71586761aa7e813c7fb9ddddfa98f3a84a.tar.xz
tangerine-wallet-browser-8c075b71586761aa7e813c7fb9ddddfa98f3a84a.tar.zst
tangerine-wallet-browser-8c075b71586761aa7e813c7fb9ddddfa98f3a84a.zip
getSeletedAsset to only return symbol strings, not token objects
-rw-r--r--ui/app/selectors/selectors.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/selectors/selectors.js b/ui/app/selectors/selectors.js
index da9cf57c7..2d25aa156 100644
--- a/ui/app/selectors/selectors.js
+++ b/ui/app/selectors/selectors.js
@@ -91,7 +91,8 @@ function getAccountType (state) {
}
function getSelectedAsset (state) {
- return getSelectedToken(state) || 'ETH'
+ const selectedToken = getSelectedToken(state)
+ return selectedToken && selectedToken.symbol || 'ETH'
}
function getCurrentNetworkId (state) {