diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-11-23 04:23:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-23 04:23:55 +0800 |
commit | e61d792832381a66e7393d32e1bc2c359834f919 (patch) | |
tree | 8ecd86cae8bb50fe928ce591529ec02a8fba557d /ui/app/accounts | |
parent | 1a8d95f5627aac6e122f7a1c905d2d23f5a0758d (diff) | |
parent | 8261cf232d5d7225f83747460cb7dbed52d5f8b8 (diff) | |
download | tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.gz tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.bz2 tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.lz tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.xz tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.zst tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.zip |
Merge pull request #869 from MetaMask/dev-cleanup
Dev Cleanup Package
Diffstat (limited to 'ui/app/accounts')
-rw-r--r-- | ui/app/accounts/account-list-item.js | 2 | ||||
-rw-r--r-- | ui/app/accounts/index.js | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ui/app/accounts/account-list-item.js b/ui/app/accounts/account-list-item.js index 4e0d69ed7..ef7b749e4 100644 --- a/ui/app/accounts/account-list-item.js +++ b/ui/app/accounts/account-list-item.js @@ -16,7 +16,7 @@ function AccountListItem () { AccountListItem.prototype.render = function () { const identity = this.props.identity - var isSelected = this.props.selectedAddress === identity.address + var isSelected = this.props.selectedAccount === identity.address var account = this.props.accounts[identity.address] const selectedClass = isSelected ? '.selected' : '' diff --git a/ui/app/accounts/index.js b/ui/app/accounts/index.js index 2e8321a77..fcb3a7b0f 100644 --- a/ui/app/accounts/index.js +++ b/ui/app/accounts/index.js @@ -19,7 +19,7 @@ function mapStateToProps (state) { accounts: state.metamask.accounts, identities: state.metamask.identities, unconfTxs: state.metamask.unconfTxs, - selectedAddress: state.metamask.selectedAddress, + selectedAccount: state.metamask.selectedAccount, scrollToBottom: state.appState.scrollToBottom, pending, } @@ -72,7 +72,7 @@ AccountsScreen.prototype.render = function () { return h(AccountListItem, { key: `acct-panel-${identity.address}`, identity, - selectedAddress: this.props.selectedAddress, + selectedAccount: this.props.selectedAccount, accounts: this.props.accounts, onShowDetail: this.onShowDetail.bind(this), pending, @@ -133,8 +133,8 @@ AccountsScreen.prototype.navigateToConfTx = function () { AccountsScreen.prototype.onSelect = function (address, event) { event.stopPropagation() // if already selected, deselect - if (this.props.selectedAddress === address) address = null - this.props.dispatch(actions.setSelectedAddress(address)) + if (this.props.selectedAccount === address) address = null + this.props.dispatch(actions.setSelectedAccount(address)) } AccountsScreen.prototype.onShowDetail = function (address, event) { |