aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-06-29 04:08:43 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-06-29 04:08:43 +0800
commit4be704097fa8892928f10020f3c0803451cfc31d (patch)
treeda997391fd2c11576ea1a1d8726455e18fc6bef7 /ui/app/send.js
parentf9540cf48c9f7e42c41e9e1648bb57ee2b5d441f (diff)
parent2fd03a60fb8c536dbe56c86e1836935616ea14d8 (diff)
downloadtangerine-wallet-browser-4be704097fa8892928f10020f3c0803451cfc31d.tar.gz
tangerine-wallet-browser-4be704097fa8892928f10020f3c0803451cfc31d.tar.zst
tangerine-wallet-browser-4be704097fa8892928f10020f3c0803451cfc31d.zip
Merge branch 'master' into title-truncate
Diffstat (limited to 'ui/app/send.js')
-rw-r--r--ui/app/send.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/send.js b/ui/app/send.js
index 4b501a7b5..540d85382 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -216,6 +216,11 @@ SendTransactionScreen.prototype.onSubmit = function () {
return this.props.dispatch(actions.displayWarning(message))
}
+ if (input < 0) {
+ message = 'Can not send negative amounts of ETH.'
+ return this.props.dispatch(actions.displayWarning(message))
+ }
+
if ((!util.isValidAddress(recipient) && !txData) || (!recipient && !txData)) {
message = 'Recipient address is invalid.'
return this.props.dispatch(actions.displayWarning(message))
@@ -234,4 +239,3 @@ SendTransactionScreen.prototype.onSubmit = function () {
this.props.dispatch(actions.signTx(txParams))
}
-