aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/accounts/index.js
diff options
context:
space:
mode:
authorDan Finlay <flyswatter@users.noreply.github.com>2017-01-03 09:49:04 +0800
committerGitHub <noreply@github.com>2017-01-03 09:49:04 +0800
commitfe61fcb0fcbee05724b77f9729660c9f692a0cb1 (patch)
treee81657c2671e25fbbba9e9bc3a62828269c38da5 /ui/app/accounts/index.js
parent305cda4265e84d520d21c473a796e8f71febc57f (diff)
parentb93cdd428b5013787f78a266bcb5ca84d26b9941 (diff)
downloadtangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.tar
tangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.tar.gz
tangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.tar.bz2
tangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.tar.lz
tangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.tar.xz
tangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.tar.zst
tangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.zip
Merge branch 'dev' into i897-ReplayProtection
Diffstat (limited to 'ui/app/accounts/index.js')
-rw-r--r--ui/app/accounts/index.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/ui/app/accounts/index.js b/ui/app/accounts/index.js
index fcb3a7b0f..edb15eafe 100644
--- a/ui/app/accounts/index.js
+++ b/ui/app/accounts/index.js
@@ -22,6 +22,7 @@ function mapStateToProps (state) {
selectedAccount: state.metamask.selectedAccount,
scrollToBottom: state.appState.scrollToBottom,
pending,
+ keyrings: state.metamask.keyrings,
}
}
@@ -31,9 +32,10 @@ function AccountsScreen () {
}
AccountsScreen.prototype.render = function () {
- var state = this.props
- var identityList = valuesFor(state.identities)
- var unconfTxList = valuesFor(state.unconfTxs)
+ const props = this.props
+ const { keyrings } = props
+ const identityList = valuesFor(props.identities)
+ const unconfTxList = valuesFor(props.unconfTxs)
return (
@@ -69,6 +71,11 @@ AccountsScreen.prototype.render = function () {
}
})
+ const simpleAddress = identity.address.substring(2).toLowerCase()
+ const keyring = keyrings.find((kr) => {
+ return kr.accounts.includes(simpleAddress)
+ })
+
return h(AccountListItem, {
key: `acct-panel-${identity.address}`,
identity,
@@ -76,6 +83,7 @@ AccountsScreen.prototype.render = function () {
accounts: this.props.accounts,
onShowDetail: this.onShowDetail.bind(this),
pending,
+ keyring,
})
}),