diff options
-rw-r--r-- | ui/app/add-token.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/app/add-token.js b/ui/app/add-token.js index b4ea4a532..22d5cbc43 100644 --- a/ui/app/add-token.js +++ b/ui/app/add-token.js @@ -143,7 +143,10 @@ AddTokenScreen.prototype.validate = function () { errors.customAddress = t('invalidAddress') } - const validDecimals = customDecimals !== null && customDecimals >= 0 && customDecimals < 36 + const validDecimals = customDecimals !== null + && customDecimals !== '' + && customDecimals >= 0 + && customDecimals < 36 if (!validDecimals) { errors.customDecimals = t('decimalsMustZerotoTen') } |