1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

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

* send ether info: only select identities
This commit is contained in:
Erik Marks 2020-05-11 11:23:28 -07:00 committed by GitHub
parent af0d3e27a8
commit 6f0f106f7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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