From 6f0f106f7fd9dbdd09b8f8fbe8fadffa3e913e06 Mon Sep 17 00:00:00 2001 From: Erik Marks <25517051+rekmarks@users.noreply.github.com> Date: Mon, 11 May 2020 11:23:28 -0700 Subject: [PATCH] Only display accounts with identities in send and permissions flows (#8568) * send ether info: only select identities --- ui/app/selectors/selectors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/selectors/selectors.js b/ui/app/selectors/selectors.js index 451e2b6d8..952a5a94b 100644 --- a/ui/app/selectors/selectors.js +++ b/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