diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-06-28 08:07:45 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-06-28 08:07:45 +0800 |
commit | 3d9bedaeea9b0485b7cfbe3255d72cfe470bcaa2 (patch) | |
tree | ae897f9f86cfc54644c2e4bddd1c76591a316cde /ui/app/send.js | |
parent | 36c7ffa585f85179458e3ff874a4e821772b6524 (diff) | |
download | tangerine-wallet-browser-3d9bedaeea9b0485b7cfbe3255d72cfe470bcaa2.tar tangerine-wallet-browser-3d9bedaeea9b0485b7cfbe3255d72cfe470bcaa2.tar.gz tangerine-wallet-browser-3d9bedaeea9b0485b7cfbe3255d72cfe470bcaa2.tar.bz2 tangerine-wallet-browser-3d9bedaeea9b0485b7cfbe3255d72cfe470bcaa2.tar.lz tangerine-wallet-browser-3d9bedaeea9b0485b7cfbe3255d72cfe470bcaa2.tar.xz tangerine-wallet-browser-3d9bedaeea9b0485b7cfbe3255d72cfe470bcaa2.tar.zst tangerine-wallet-browser-3d9bedaeea9b0485b7cfbe3255d72cfe470bcaa2.zip |
Fix it so you cant send a negitavie amount of ETH
Diffstat (limited to 'ui/app/send.js')
-rw-r--r-- | ui/app/send.js | 6 |
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)) } - |