Merge pull request #6448 from whymarrh/getSendToAccounts

Remove unneeded array cloning in getSendToAccounts selector
feature/default_network_editable
Whymarrh Whitby 6 years ago committed by GitHub
commit 3a969b22ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/app/components/app/send/send.selectors.js

@ -240,9 +240,7 @@ function getSendTo (state) {
function getSendToAccounts (state) {
const fromAccounts = accountsWithSendEtherInfoSelector(state)
const addressBookAccounts = getAddressBook(state)
const allAccounts = [...fromAccounts, ...addressBookAccounts]
// TODO: figure out exactly what the below returns and put a descriptive variable name on it
return Object.entries(allAccounts).map(([key, account]) => account)
return [...fromAccounts, ...addressBookAccounts]
}
function getSendWarnings (state) {

Loading…
Cancel
Save