From 53c55d8522a3aef5947768ea2ed51742ba717a24 Mon Sep 17 00:00:00 2001 From: Erik Marks <25517051+rekmarks@users.noreply.github.com> Date: Mon, 8 Jun 2020 13:23:48 -0700 Subject: [PATCH] Order accounts on connect page (#8762) --- ui/app/selectors/selectors.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,