aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorThomas <tmashuang@gmail.com>2018-01-31 05:26:37 +0800
committerThomas <tmashuang@gmail.com>2018-01-31 05:26:37 +0800
commitc2cef0f815efb5667bf9aabff125cc1a8822283c (patch)
treed2fa8be7f4b83cbad52bc0672296102046fb7972 /ui
parentb991ac0422acd509d5fd4a4ab28c2e6c4004c62f (diff)
downloadtangerine-wallet-browser-c2cef0f815efb5667bf9aabff125cc1a8822283c.tar
tangerine-wallet-browser-c2cef0f815efb5667bf9aabff125cc1a8822283c.tar.gz
tangerine-wallet-browser-c2cef0f815efb5667bf9aabff125cc1a8822283c.tar.bz2
tangerine-wallet-browser-c2cef0f815efb5667bf9aabff125cc1a8822283c.tar.lz
tangerine-wallet-browser-c2cef0f815efb5667bf9aabff125cc1a8822283c.tar.xz
tangerine-wallet-browser-c2cef0f815efb5667bf9aabff125cc1a8822283c.tar.zst
tangerine-wallet-browser-c2cef0f815efb5667bf9aabff125cc1a8822283c.zip
Set address to default with empty string, add test validation.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/add-token.js4
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