1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

edit decimal check in old-ui/

This commit is contained in:
bunoi 2018-09-03 18:32:38 +07:00
parent 87125d632a
commit c824418955
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ AddSuggestedTokenScreen.prototype.validateInputs = function (opts) {
msg += 'Address is invalid.'
}
const validDecimals = decimals >= 0 && decimals < 36
const validDecimals = decimals >= 0 && decimals <= 36
if (!validDecimals) {
msg += 'Decimals must be at least 0, and not over 36. '
}

View File

@ -196,7 +196,7 @@ AddTokenScreen.prototype.validateInputs = function () {
msg += 'Address is invalid.'
}
const validDecimals = decimals >= 0 && decimals < 36
const validDecimals = decimals >= 0 && decimals <= 36
if (!validDecimals) {
msg += 'Decimals must be at least 0, and not over 36. '
}