diff options
author | Dan J Miller <danjm.com@gmail.com> | 2018-09-05 08:09:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-05 08:09:01 +0800 |
commit | bd49098039a6e533a5ba9c2ffda285d43ea845df (patch) | |
tree | 30872adeecf1bfcde03aa01588ff51c35affa450 | |
parent | 50434513569ad44fbd01a7e124b5f499b4d6f2e2 (diff) | |
parent | f412b192440fe1db9132c703a138082f489ca548 (diff) | |
download | tangerine-wallet-browser-bd49098039a6e533a5ba9c2ffda285d43ea845df.tar tangerine-wallet-browser-bd49098039a6e533a5ba9c2ffda285d43ea845df.tar.gz tangerine-wallet-browser-bd49098039a6e533a5ba9c2ffda285d43ea845df.tar.bz2 tangerine-wallet-browser-bd49098039a6e533a5ba9c2ffda285d43ea845df.tar.lz tangerine-wallet-browser-bd49098039a6e533a5ba9c2ffda285d43ea845df.tar.xz tangerine-wallet-browser-bd49098039a6e533a5ba9c2ffda285d43ea845df.tar.zst tangerine-wallet-browser-bd49098039a6e533a5ba9c2ffda285d43ea845df.zip |
Merge pull request #5188 from taobun/develop
edit decimal check in old-ui/
-rw-r--r-- | old-ui/app/add-suggested-token.js | 2 | ||||
-rw-r--r-- | old-ui/app/add-token.js | 2 | ||||
-rw-r--r-- | ui/app/components/pages/add-token/add-token.component.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/old-ui/app/add-suggested-token.js b/old-ui/app/add-suggested-token.js index 51be4c5f2..ea534b7da 100644 --- a/old-ui/app/add-suggested-token.js +++ b/old-ui/app/add-suggested-token.js @@ -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. ' } diff --git a/old-ui/app/add-token.js b/old-ui/app/add-token.js index e869ac39a..6cf211636 100644 --- a/old-ui/app/add-token.js +++ b/old-ui/app/add-token.js @@ -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. ' } diff --git a/ui/app/components/pages/add-token/add-token.component.js b/ui/app/components/pages/add-token/add-token.component.js index 59748ff46..3612e676c 100644 --- a/ui/app/components/pages/add-token/add-token.component.js +++ b/ui/app/components/pages/add-token/add-token.component.js @@ -206,7 +206,7 @@ class AddToken extends Component { const validDecimals = customDecimals !== null && customDecimals !== '' && customDecimals >= 0 && - customDecimals < 36 + customDecimals <= 36 let customDecimalsError = null if (!validDecimals) { |