Only display accounts with identities in send and permissions flows (#8568)

* send ether info: only select identities
feature/default_network_editable
Erik Marks 5 years ago committed by GitHub
parent af0d3e27a8
commit 6f0f106f7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/app/selectors/selectors.js

@ -199,8 +199,8 @@ export function accountsWithSendEtherInfoSelector (state) {
const accounts = getMetaMaskAccounts(state)
const { identities } = state.metamask
const accountsWithSendEtherInfo = Object.entries(accounts).map(([key, account]) => {
return Object.assign({}, account, identities[key])
const accountsWithSendEtherInfo = Object.entries(identities).map(([key, identity]) => {
return Object.assign({}, accounts[key], identity)
})
return accountsWithSendEtherInfo

Loading…
Cancel
Save