diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-06-06 02:39:51 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-06-06 08:17:27 +0800 |
commit | df6d03cefd1917c377f658fa8423654957ca6440 (patch) | |
tree | fe4aaa62b1c94ffbe89663e81f0a7d3f9f1a64b5 /old-ui | |
parent | d9d09f953b9500b783a164b4aba85efcbd7ddbe2 (diff) | |
download | tangerine-wallet-browser-df6d03cefd1917c377f658fa8423654957ca6440.tar tangerine-wallet-browser-df6d03cefd1917c377f658fa8423654957ca6440.tar.gz tangerine-wallet-browser-df6d03cefd1917c377f658fa8423654957ca6440.tar.bz2 tangerine-wallet-browser-df6d03cefd1917c377f658fa8423654957ca6440.tar.lz tangerine-wallet-browser-df6d03cefd1917c377f658fa8423654957ca6440.tar.xz tangerine-wallet-browser-df6d03cefd1917c377f658fa8423654957ca6440.tar.zst tangerine-wallet-browser-df6d03cefd1917c377f658fa8423654957ca6440.zip |
Fix account list order for the old UI
Diffstat (limited to 'old-ui')
-rw-r--r-- | old-ui/app/components/account-dropdowns.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/old-ui/app/components/account-dropdowns.js b/old-ui/app/components/account-dropdowns.js index 53468a1a1..262de6601 100644 --- a/old-ui/app/components/account-dropdowns.js +++ b/old-ui/app/components/account-dropdowns.js @@ -23,9 +23,10 @@ class AccountDropdowns extends Component { renderAccounts () { const { identities, selected, keyrings } = this.props + const accountOrder = keyrings.reduce((list, keyring) => list.concat(keyring.accounts), []) - return Object.keys(identities).map((key, index) => { - const identity = identities[key] + return accountOrder.map((address, index) => { + const identity = identities[address] const isSelected = identity.address === selected const simpleAddress = identity.address.substring(2).toLowerCase() |