aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-06-06 04:35:25 +0800
committerGitHub <noreply@github.com>2018-06-06 04:35:25 +0800
commit39a7702c8f0aa2c2e7fdf2bcf913e76bb8b827f4 (patch)
tree3debb11f863bd2d400bebeebc0ed8b0e862ba19a /ui
parente1cd3562cef92a78945056dc557d4228a72b119c (diff)
parentf73feccf5af76312f9b0a65c42b2bd0877dfba7d (diff)
downloadtangerine-wallet-browser-39a7702c8f0aa2c2e7fdf2bcf913e76bb8b827f4.tar
tangerine-wallet-browser-39a7702c8f0aa2c2e7fdf2bcf913e76bb8b827f4.tar.gz
tangerine-wallet-browser-39a7702c8f0aa2c2e7fdf2bcf913e76bb8b827f4.tar.bz2
tangerine-wallet-browser-39a7702c8f0aa2c2e7fdf2bcf913e76bb8b827f4.tar.lz
tangerine-wallet-browser-39a7702c8f0aa2c2e7fdf2bcf913e76bb8b827f4.tar.xz
tangerine-wallet-browser-39a7702c8f0aa2c2e7fdf2bcf913e76bb8b827f4.tar.zst
tangerine-wallet-browser-39a7702c8f0aa2c2e7fdf2bcf913e76bb8b827f4.zip
Merge pull request #4511 from MetaMask/v4.7.4
Version 4.7.4
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/wallet-view.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js
index 3b29dacac..da142fad8 100644
--- a/ui/app/components/wallet-view.js
+++ b/ui/app/components/wallet-view.js
@@ -36,7 +36,6 @@ function mapStateToProps (state) {
tokens: state.metamask.tokens,
keyrings: state.metamask.keyrings,
selectedAddress: selectors.getSelectedAddress(state),
- selectedIdentity: selectors.getSelectedIdentity(state),
selectedAccount: selectors.getSelectedAccount(state),
selectedTokenAddress: state.metamask.selectedTokenAddress,
}
@@ -99,21 +98,24 @@ WalletView.prototype.render = function () {
const {
responsiveDisplayClassname,
selectedAddress,
- selectedIdentity,
keyrings,
showAccountDetailModal,
sidebarOpen,
hideSidebar,
history,
+ identities,
} = this.props
// temporary logs + fake extra wallets
// console.log('walletview, selectedAccount:', selectedAccount)
const checksummedAddress = checksumAddress(selectedAddress)
+ if (!selectedAddress) {
+ throw new Error('selectedAddress should not be ' + String(selectedAddress))
+ }
+
const keyring = keyrings.find((kr) => {
- return kr.accounts.includes(selectedAddress) ||
- kr.accounts.includes(selectedIdentity.address)
+ return kr.accounts.includes(selectedAddress)
})
const type = keyring.type
@@ -145,7 +147,7 @@ WalletView.prototype.render = function () {
h('span.account-name', {
style: {},
}, [
- selectedIdentity.name,
+ identities[selectedAddress].name,
]),
h('button.btn-clear.wallet-view__details-button.allcaps', this.context.t('details')),