mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
edit decimal check in old-ui/
This commit is contained in:
parent
87125d632a
commit
c824418955
@ -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. '
|
||||
}
|
||||
|
@ -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. '
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user