diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-04-21 13:07:00 +0800 |
---|---|---|
committer | kumavis <kumavis@users.noreply.github.com> | 2016-04-21 13:07:00 +0800 |
commit | db85827b2be19d7bfc7dfaeec4786c4d051b6629 (patch) | |
tree | 39075d39ddcfbcb80016d61a22942451dbc745b9 /ui/app/send.js | |
parent | f82a4de725e384ab4bb39c57f83a3dbb406c8db6 (diff) | |
parent | 532edf670e8c30db958765141974f3fb0f5ec44c (diff) | |
download | tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.tar tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.tar.gz tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.tar.bz2 tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.tar.lz tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.tar.xz tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.tar.zst tangerine-wallet-browser-db85827b2be19d7bfc7dfaeec4786c4d051b6629.zip |
Merge pull request #125 from MetaMask/TransactionList
Add transaction history to account detail view
Diffstat (limited to 'ui/app/send.js')
-rw-r--r-- | ui/app/send.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/app/send.js b/ui/app/send.js index 3cb56cb6e..d34accddc 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -96,7 +96,7 @@ SendTransactionScreen.prototype.render = function() { }, 'Send') ]), - state.warning ? h('span.error', state.warning) : null, + state.warning ? h('span.error', state.warning.split('.')[0]) : null, ]) ) } @@ -108,11 +108,11 @@ SendTransactionScreen.prototype.back = function() { SendTransactionScreen.prototype.onSubmit = function(event) { var recipient = document.querySelector('input.address').value - var amount = new ethUtil.BN(document.querySelector('input.ether').value, 10) + + var inputAmount = parseFloat(document.querySelector('input.ether').value) var currency = document.querySelector('select.currency').value - var txData = document.querySelector('textarea.txData').value + var value = util.normalizeNumberToWei(inputAmount, currency) - var value = util.normalizeToWei(amount, currency) var balance = this.props.balance if (value.gt(balance)) { @@ -132,6 +132,8 @@ SendTransactionScreen.prototype.onSubmit = function(event) { from: this.props.address, value: '0x' + value.toString(16), } + + var txData = document.querySelector('textarea.txData').value if (txData) txParams.data = txData this.props.dispatch(actions.signTx(txParams)) |