aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-footer/send-footer.component.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-26 01:09:31 +0800
committerDan <danjm.com@gmail.com>2018-05-26 01:09:31 +0800
commite712336189e1a0a453ea30dbb58abbc3c57db8f8 (patch)
tree13137b391037515880ebd227a293ea75dfa1bbe8 /ui/app/components/send_/send-footer/send-footer.component.js
parent0de765aa25637cd85e22eebd11b6c4c8a32faf14 (diff)
downloadtangerine-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.component.js')
-rw-r--r--ui/app/components/send_/send-footer/send-footer.component.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/send_/send-footer/send-footer.component.js b/ui/app/components/send_/send-footer/send-footer.component.js
index 7ff44c9d5..6471ae1a3 100644
--- a/ui/app/components/send_/send-footer/send-footer.component.js
+++ b/ui/app/components/send_/send-footer/send-footer.component.js
@@ -77,9 +77,9 @@ export default class SendFooter extends Component {
}
formShouldBeDisabled () {
- const { inError, selectedToken, tokenBalance, gasTotal } = this.props
+ const { inError, selectedToken, tokenBalance, gasTotal, to } = this.props
const missingTokenBalance = selectedToken && !tokenBalance
- return inError || !gasTotal || missingTokenBalance
+ return inError || !gasTotal || missingTokenBalance || !to
}
render () {