diff options
author | Dan Finlay <flyswatter@users.noreply.github.com> | 2017-06-28 11:56:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-28 11:56:42 +0800 |
commit | 3fde5481ef45cbe731a2486855022afe7c1344fe (patch) | |
tree | 43ffedc7582e617b0e6763742abb90f300848245 | |
parent | c2aa05e0134d552e784391ae22ec2b8c35a7eb94 (diff) | |
parent | a3526906613c9047e6a2bd6bd7c11934152a32fb (diff) | |
download | tangerine-wallet-browser-3fde5481ef45cbe731a2486855022afe7c1344fe.tar tangerine-wallet-browser-3fde5481ef45cbe731a2486855022afe7c1344fe.tar.gz tangerine-wallet-browser-3fde5481ef45cbe731a2486855022afe7c1344fe.tar.bz2 tangerine-wallet-browser-3fde5481ef45cbe731a2486855022afe7c1344fe.tar.lz tangerine-wallet-browser-3fde5481ef45cbe731a2486855022afe7c1344fe.tar.xz tangerine-wallet-browser-3fde5481ef45cbe731a2486855022afe7c1344fe.tar.zst tangerine-wallet-browser-3fde5481ef45cbe731a2486855022afe7c1344fe.zip |
Merge pull request #1681 from MetaMask/AddressStripping
Remove trailing periods and whitespace
-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 70d26d50a..a21a219eb 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) |