diff options
author | Thomas Huang <thomas.b.huang@gmail.com> | 2017-06-28 03:09:50 +0800 |
---|---|---|
committer | Thomas Huang <thomas.b.huang@gmail.com> | 2017-06-28 03:09:50 +0800 |
commit | a3526906613c9047e6a2bd6bd7c11934152a32fb (patch) | |
tree | 29879b33b6c24c4e4b7123858d12a1d14284d478 /ui | |
parent | 48f7cff8c0e765e85532c860c5f3061ca1d6deb7 (diff) | |
download | tangerine-wallet-browser-a3526906613c9047e6a2bd6bd7c11934152a32fb.tar tangerine-wallet-browser-a3526906613c9047e6a2bd6bd7c11934152a32fb.tar.gz tangerine-wallet-browser-a3526906613c9047e6a2bd6bd7c11934152a32fb.tar.bz2 tangerine-wallet-browser-a3526906613c9047e6a2bd6bd7c11934152a32fb.tar.lz tangerine-wallet-browser-a3526906613c9047e6a2bd6bd7c11934152a32fb.tar.xz tangerine-wallet-browser-a3526906613c9047e6a2bd6bd7c11934152a32fb.tar.zst tangerine-wallet-browser-a3526906613c9047e6a2bd6bd7c11934152a32fb.zip |
Remove trailing periods and white space
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/send.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/send.js b/ui/app/send.js index fd6994145..34e0ea70a 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -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) |