diff --git a/ui/app/selectors/selectors.js b/ui/app/selectors/selectors.js index ab6e15043..98364404e 100644 --- a/ui/app/selectors/selectors.js +++ b/ui/app/selectors/selectors.js @@ -177,17 +177,17 @@ export function getAddressBookEntryName (state, address) { export function accountsWithSendEtherInfoSelector (state) { const accounts = getMetaMaskAccounts(state) - const { identities } = state.metamask + const identities = getMetaMaskIdentities(state) const accountsWithSendEtherInfo = Object.entries(identities).map(([key, identity]) => { - return Object.assign({}, accounts[key], identity) + return Object.assign({}, identity, accounts[key]) }) return accountsWithSendEtherInfo } export function getAccountsWithLabels (state) { - return accountsWithSendEtherInfoSelector(state).map(({ address, name, balance }) => ({ + return getMetaMaskAccountsOrdered(state).map(({ address, name, balance }) => ({ address, addressLabel: `${name} (...${address.slice(address.length - 4)})`, label: name,