diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-05-20 05:46:50 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-05-20 05:46:50 +0800 |
commit | 60270de53d214edffad7b90356bbe06081a55443 (patch) | |
tree | 67a648b43cbb604507ccd793e9a44cbbe24deb23 /ui/app/send.js | |
parent | 22a77b80411350bd844313b51ea58312940b9738 (diff) | |
download | tangerine-wallet-browser-60270de53d214edffad7b90356bbe06081a55443.tar tangerine-wallet-browser-60270de53d214edffad7b90356bbe06081a55443.tar.gz tangerine-wallet-browser-60270de53d214edffad7b90356bbe06081a55443.tar.bz2 tangerine-wallet-browser-60270de53d214edffad7b90356bbe06081a55443.tar.lz tangerine-wallet-browser-60270de53d214edffad7b90356bbe06081a55443.tar.xz tangerine-wallet-browser-60270de53d214edffad7b90356bbe06081a55443.tar.zst tangerine-wallet-browser-60270de53d214edffad7b90356bbe06081a55443.zip |
Add full precision to send tx value field.
Diffstat (limited to 'ui/app/send.js')
-rw-r--r-- | ui/app/send.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/send.js b/ui/app/send.js index ea9dd7c0c..926c3e29a 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -209,8 +209,8 @@ SendTransactionScreen.prototype.back = function() { SendTransactionScreen.prototype.onSubmit = function() { const recipient = document.querySelector('input[name="address"]').value - const inputAmount = parseFloat(document.querySelector('input[name="amount"]').value) - const value = util.normalizeNumberToWei(inputAmount, 'ether') + const input = document.querySelector('input[name="amount"]').value + const value = util.normalizeEthStringToWei(input) const txData = document.querySelector('input[name="txData"]').value const balance = this.props.balance |