diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-05-20 05:21:35 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-05-20 05:21:35 +0800 |
commit | 22a77b80411350bd844313b51ea58312940b9738 (patch) | |
tree | 757461fdb573045b2d870fd52d57064ee28335f1 /ui | |
parent | 43a948e94b03e3c4b9f888650a798f5c5d77ae1e (diff) | |
download | tangerine-wallet-browser-22a77b80411350bd844313b51ea58312940b9738.tar tangerine-wallet-browser-22a77b80411350bd844313b51ea58312940b9738.tar.gz tangerine-wallet-browser-22a77b80411350bd844313b51ea58312940b9738.tar.bz2 tangerine-wallet-browser-22a77b80411350bd844313b51ea58312940b9738.tar.lz tangerine-wallet-browser-22a77b80411350bd844313b51ea58312940b9738.tar.xz tangerine-wallet-browser-22a77b80411350bd844313b51ea58312940b9738.tar.zst tangerine-wallet-browser-22a77b80411350bd844313b51ea58312940b9738.zip |
Increase send value precision
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/send.js | 2 | ||||
-rw-r--r-- | ui/app/util.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/send.js b/ui/app/send.js index 044311b94..ea9dd7c0c 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -219,7 +219,7 @@ SendTransactionScreen.prototype.onSubmit = function() { return this.props.dispatch(actions.displayWarning(message)) } - if ((util.isValidAddress(recipient) && !txData) || (!recipient && !txData)) { + if ((!util.isValidAddress(recipient) && !txData) || (!recipient && !txData)) { var message = 'Recipient address is invalid.' return this.props.dispatch(actions.displayWarning(message)) } diff --git a/ui/app/util.js b/ui/app/util.js index d8a0313ea..7597c2df8 100644 --- a/ui/app/util.js +++ b/ui/app/util.js @@ -120,9 +120,9 @@ function normalizeToWei(amount, currency) { return amount } -var multiple = new ethUtil.BN('1000', 10) +var multiple = new ethUtil.BN('10000', 10) function normalizeNumberToWei(n, currency) { - var enlarged = n * 1000 + var enlarged = n * 10000 var amount = new ethUtil.BN(String(enlarged), 10) return normalizeToWei(amount, currency).div(multiple) } |