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 a96871853..472f3b736 100644 --- a/ui/app/add-token.js +++ b/ui/app/add-token.js @@ -142,7 +142,10 @@ AddTokenScreen.prototype.validate = function () { errors.customAddress = this.props.t('invalidAddress') } - const validDecimals = customDecimals !== null && customDecimals >= 0 && customDecimals < 36 + const validDecimals = customDecimals !== null + && customDecimals !== '' + && customDecimals >= 0 + && customDecimals < 36 if (!validDecimals) { errors.customDecimals = this.props.t('decimalsMustZerotoTen') } |