diff options
author | Frankie <frankie.diamond@gmail.com> | 2018-02-01 06:18:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-01 06:18:47 +0800 |
commit | 1a93b1ade292369bff2ceecf036f856fe0b20dbb (patch) | |
tree | 2fedac9028936ba3b371873a10283b4bb5ed8e41 /ui | |
parent | 1eec2ca8c0e42fdf603f4f6b19c75f61ecbc8fc3 (diff) | |
parent | 1f8dd5f0def9856efa867c74dba71dba47433a46 (diff) | |
download | tangerine-wallet-browser-1a93b1ade292369bff2ceecf036f856fe0b20dbb.tar.gz tangerine-wallet-browser-1a93b1ade292369bff2ceecf036f856fe0b20dbb.tar.zst tangerine-wallet-browser-1a93b1ade292369bff2ceecf036f856fe0b20dbb.zip |
Merge pull request #3146 from MetaMask/i3082-AddTokenValidateInputs
Set address to default with empty string, add test validation.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/add-token.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/add-token.js b/ui/app/add-token.js index 9354a4cad..d5a23c360 100644 --- a/ui/app/add-token.js +++ b/ui/app/add-token.js @@ -25,7 +25,7 @@ inherits(AddTokenScreen, Component) function AddTokenScreen () { this.state = { warning: null, - address: null, + address: '', symbol: 'TOKEN', decimals: 18, } @@ -190,7 +190,7 @@ AddTokenScreen.prototype.validateInputs = function () { const validAddress = ethUtil.isValidAddress(address) if (!validAddress) { - msg += 'Address is invalid. ' + msg += 'Address is invalid.' } const validDecimals = decimals >= 0 && decimals < 36 |