edit decimal check in old-ui/

feature/default_network_editable
bunoi 6 years ago
parent 87125d632a
commit c824418955
  1. 2
      old-ui/app/add-suggested-token.js
  2. 2
      old-ui/app/add-token.js

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

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

Loading…
Cancel
Save