aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-06-29 04:11:50 +0800
committerkumavis <aaron@kumavis.me>2016-06-29 04:11:50 +0800
commit57aca116ed33476ce87d9c5f9248013e0b3c5fcc (patch)
tree2ddf55ec9579b579640509686d60468a84da64ff /ui/app/send.js
parent494b62dcf8262e2c9f18e0b59b23129d5b625210 (diff)
parent2fd03a60fb8c536dbe56c86e1836935616ea14d8 (diff)
downloadtangerine-wallet-browser-57aca116ed33476ce87d9c5f9248013e0b3c5fcc.tar.gz
tangerine-wallet-browser-57aca116ed33476ce87d9c5f9248013e0b3c5fcc.tar.zst
tangerine-wallet-browser-57aca116ed33476ce87d9c5f9248013e0b3c5fcc.zip
Merge branch 'master' into FixSomeFormatting
# Conflicts: # CHANGELOG.md # app/scripts/lib/notifications.js
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))
}
-