aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-04-13 00:13:56 +0800
committerGitHub <noreply@github.com>2019-04-13 00:13:56 +0800
commit3a969b22eebedd4c00c26490fd7d22a4def4feb2 (patch)
tree510ab68434b7637e01fa83c569bbc327a3630703
parent2786932576a92f8e75ee798d91c8222741c774c9 (diff)
parentc4a3d4ea82ef5488c8c91db77beca85679447722 (diff)
downloadtangerine-wallet-browser-3a969b22eebedd4c00c26490fd7d22a4def4feb2.tar
tangerine-wallet-browser-3a969b22eebedd4c00c26490fd7d22a4def4feb2.tar.gz
tangerine-wallet-browser-3a969b22eebedd4c00c26490fd7d22a4def4feb2.tar.bz2
tangerine-wallet-browser-3a969b22eebedd4c00c26490fd7d22a4def4feb2.tar.lz
tangerine-wallet-browser-3a969b22eebedd4c00c26490fd7d22a4def4feb2.tar.xz
tangerine-wallet-browser-3a969b22eebedd4c00c26490fd7d22a4def4feb2.tar.zst
tangerine-wallet-browser-3a969b22eebedd4c00c26490fd7d22a4def4feb2.zip
Merge pull request #6448 from whymarrh/getSendToAccounts
Remove unneeded array cloning in getSendToAccounts selector
-rw-r--r--ui/app/components/app/send/send.selectors.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/app/components/app/send/send.selectors.js b/ui/app/components/app/send/send.selectors.js
index 89f047d50..6056dea21 100644
--- a/ui/app/components/app/send/send.selectors.js
+++ b/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) {