diff options
author | Dan <danjm.com@gmail.com> | 2018-05-26 01:09:31 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-26 01:09:31 +0800 |
commit | e712336189e1a0a453ea30dbb58abbc3c57db8f8 (patch) | |
tree | 13137b391037515880ebd227a293ea75dfa1bbe8 /ui/app/components/send_/send-footer/send-footer.selectors.js | |
parent | 0de765aa25637cd85e22eebd11b6c4c8a32faf14 (diff) | |
download | tangerine-wallet-browser-e712336189e1a0a453ea30dbb58abbc3c57db8f8.tar.gz tangerine-wallet-browser-e712336189e1a0a453ea30dbb58abbc3c57db8f8.tar.zst tangerine-wallet-browser-e712336189e1a0a453ea30dbb58abbc3c57db8f8.zip |
Send refactor: fix error handling and form disabling in send form.
Diffstat (limited to 'ui/app/components/send_/send-footer/send-footer.selectors.js')
-rw-r--r-- | ui/app/components/send_/send-footer/send-footer.selectors.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/app/components/send_/send-footer/send-footer.selectors.js b/ui/app/components/send_/send-footer/send-footer.selectors.js index 15a053ae0..e20addfdc 100644 --- a/ui/app/components/send_/send-footer/send-footer.selectors.js +++ b/ui/app/components/send_/send-footer/send-footer.selectors.js @@ -7,6 +7,5 @@ const selectors = { module.exports = selectors function isSendFormInError (state) { - const { amount, to } = getSendErrors(state) - return Boolean(amount || to !== null) + return Object.values(getSendErrors(state)).some(n => n) } |