mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #6448 from whymarrh/getSendToAccounts
Remove unneeded array cloning in getSendToAccounts selector
This commit is contained in:
commit
3a969b22ee
@ -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…
x
Reference in New Issue
Block a user