1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

getSeletedAsset to only return symbol strings, not token objects

This commit is contained in:
Dan Miller 2019-04-17 20:59:45 -02:30
parent 1ba7afe34b
commit 8c075b7158

View File

@ -91,7 +91,8 @@ function getAccountType (state) {
} }
function getSelectedAsset (state) { function getSelectedAsset (state) {
return getSelectedToken(state) || 'ETH' const selectedToken = getSelectedToken(state)
return selectedToken && selectedToken.symbol || 'ETH'
} }
function getCurrentNetworkId (state) { function getCurrentNetworkId (state) {