diff options
author | Dan Miller <danjm.com@gmail.com> | 2018-12-05 20:34:19 +0800 |
---|---|---|
committer | Dan Miller <danjm.com@gmail.com> | 2018-12-13 01:23:37 +0800 |
commit | 0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1 (patch) | |
tree | f94bcad1af6a69cf1ac8251bfd311e6df6c7ec9e /ui/app/selectors.js | |
parent | 47501a6f7ad092f9d941fffac1b3b5cc557c65c3 (diff) | |
download | tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar.gz tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar.bz2 tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar.lz tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar.xz tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.tar.zst tangerine-wallet-browser-0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1.zip |
Add identifier of private network to the network loading screen message.
Diffstat (limited to 'ui/app/selectors.js')
-rw-r--r-- | ui/app/selectors.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/app/selectors.js b/ui/app/selectors.js index 8259bb052..10bf63975 100644 --- a/ui/app/selectors.js +++ b/ui/app/selectors.js @@ -36,10 +36,18 @@ const selectors = { preferencesSelector, getMetaMaskAccounts, getCurrentEthBalance, + getNetworkIdentifier, } module.exports = selectors +function getNetworkIdentifier (state) { + const { metamask: { provider: { type, nickname, rpcTarget } } } = state + + return nickname || rpcTarget || type + +} + function getSelectedAddress (state) { const selectedAddress = state.metamask.selectedAddress || Object.keys(getMetaMaskAccounts(state))[0] |