diff options
author | kumavis <kumavis@users.noreply.github.com> | 2017-07-08 05:21:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-08 05:21:43 +0800 |
commit | d228f46254783885e9762a2f96ecb9c3077c5fb3 (patch) | |
tree | b0e0fde9f209c3728f7a1e36d3c4417ea7a3852d /ui/app/send.js | |
parent | 51ff6d74e884b599f78b5454b33f2bc1a046f0b2 (diff) | |
parent | 678cfd21755bab430d28a8f0d0fb44a81ecefade (diff) | |
download | tangerine-wallet-browser-d228f46254783885e9762a2f96ecb9c3077c5fb3.tar tangerine-wallet-browser-d228f46254783885e9762a2f96ecb9c3077c5fb3.tar.gz tangerine-wallet-browser-d228f46254783885e9762a2f96ecb9c3077c5fb3.tar.bz2 tangerine-wallet-browser-d228f46254783885e9762a2f96ecb9c3077c5fb3.tar.lz tangerine-wallet-browser-d228f46254783885e9762a2f96ecb9c3077c5fb3.tar.xz tangerine-wallet-browser-d228f46254783885e9762a2f96ecb9c3077c5fb3.tar.zst tangerine-wallet-browser-d228f46254783885e9762a2f96ecb9c3077c5fb3.zip |
Merge branch 'master' into nonce-tracker
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 fd6994145..a21a219eb 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -189,7 +189,7 @@ SendTransactionScreen.prototype.render = function () { style: { textTransform: 'uppercase', }, - }, 'Send'), + }, 'Next'), ]), @@ -244,7 +244,7 @@ SendTransactionScreen.prototype.recipientDidChange = function (recipient, nickna SendTransactionScreen.prototype.onSubmit = function () { const state = this.state || {} - const recipient = state.recipient || document.querySelector('input[name="address"]').value + const recipient = state.recipient || document.querySelector('input[name="address"]').value.replace(/^[.\s]+|[.\s]+$/g, '') const nickname = state.nickname || ' ' const input = document.querySelector('input[name="amount"]').value const value = util.normalizeEthStringToWei(input) |