diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-06-22 04:56:04 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-06-22 04:56:04 +0800 |
commit | 8fde8a8921135112ccfdd13ce6b009755b5f71ed (patch) | |
tree | cd4ceb1dcd74a601506f92e5669e3022ca800c0c /ui/app/send.js | |
parent | ab15b4c8259d6f6c5ae9d1e51548d73cfc1c67cb (diff) | |
download | tangerine-wallet-browser-8fde8a8921135112ccfdd13ce6b009755b5f71ed.tar tangerine-wallet-browser-8fde8a8921135112ccfdd13ce6b009755b5f71ed.tar.gz tangerine-wallet-browser-8fde8a8921135112ccfdd13ce6b009755b5f71ed.tar.bz2 tangerine-wallet-browser-8fde8a8921135112ccfdd13ce6b009755b5f71ed.tar.lz tangerine-wallet-browser-8fde8a8921135112ccfdd13ce6b009755b5f71ed.tar.xz tangerine-wallet-browser-8fde8a8921135112ccfdd13ce6b009755b5f71ed.tar.zst tangerine-wallet-browser-8fde8a8921135112ccfdd13ce6b009755b5f71ed.zip |
Manually linted
Diffstat (limited to 'ui/app/send.js')
-rw-r--r-- | ui/app/send.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/send.js b/ui/app/send.js index a5a9d69f1..82c378dd2 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -6,7 +6,6 @@ const Identicon = require('./components/identicon') const actions = require('./actions') const util = require('./util') const numericBalance = require('./util').numericBalance -const formatBalance = require('./util').formatBalance const addressSummary = require('./util').addressSummary const EtherBalance = require('./components/eth-balance') const ethUtil = require('ethereumjs-util') @@ -212,14 +211,15 @@ SendTransactionScreen.prototype.onSubmit = function () { const value = util.normalizeEthStringToWei(input) const txData = document.querySelector('input[name="txData"]').value const balance = this.props.balance + let message if (value.gt(balance)) { - var message = 'Insufficient funds.' + message = 'Insufficient funds.' return this.props.dispatch(actions.displayWarning(message)) } if ((!util.isValidAddress(recipient) && !txData) || (!recipient && !txData)) { - var message = 'Recipient address is invalid.' + message = 'Recipient address is invalid.' return this.props.dispatch(actions.displayWarning(message)) } |