aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-06-29 04:00:37 +0800
committerGitHub <noreply@github.com>2016-06-29 04:00:37 +0800
commit7026eca222283ea873fd576c4cae5ba0ab5ad129 (patch)
tree9e9749754f8eb8b8360eb72c534de4f4ee94a2cd /ui
parent204cb7f1edea12c8438655ab3d601d415ab77e54 (diff)
parent16566ee7dbe00c40941b0ed3c7f3b96179cae3aa (diff)
downloadtangerine-wallet-browser-7026eca222283ea873fd576c4cae5ba0ab5ad129.tar
tangerine-wallet-browser-7026eca222283ea873fd576c4cae5ba0ab5ad129.tar.gz
tangerine-wallet-browser-7026eca222283ea873fd576c4cae5ba0ab5ad129.tar.bz2
tangerine-wallet-browser-7026eca222283ea873fd576c4cae5ba0ab5ad129.tar.lz
tangerine-wallet-browser-7026eca222283ea873fd576c4cae5ba0ab5ad129.tar.xz
tangerine-wallet-browser-7026eca222283ea873fd576c4cae5ba0ab5ad129.tar.zst
tangerine-wallet-browser-7026eca222283ea873fd576c4cae5ba0ab5ad129.zip
Merge pull request #348 from MetaMask/i341
Clear notifications on extension open + guard against negative sends
Diffstat (limited to 'ui')
-rw-r--r--ui/app/app.js1
-rw-r--r--ui/app/send.js6
2 files changed, 5 insertions, 2 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 8a51f968b..80521d220 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -355,4 +355,3 @@ App.prototype.toggleMetamaskActive = function () {
this.props.dispatch(actions.lockMetamask(false))
}
}
-
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))
}
-