From 051813f1f3b6ccaa24788d829a9ceed400c4c0f0 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Wed, 29 Apr 2020 13:10:04 +0300 Subject: [PATCH] Extend available Symbol length to 22 to support yDAI+yUSDC+yUSDT+yTUSD --- old-ui/app/components/add-token/add-token.component.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/old-ui/app/components/add-token/add-token.component.js b/old-ui/app/components/add-token/add-token.component.js index 9845960eec3c..4bbb9258314c 100644 --- a/old-ui/app/components/add-token/add-token.component.js +++ b/old-ui/app/components/add-token/add-token.component.js @@ -368,9 +368,9 @@ export default class AddTokenScreen extends Component { } const symbolLen = symbol.trim().length - const validSymbol = symbolLen > 0 && symbolLen < 12 + const validSymbol = symbolLen > 0 && symbolLen < 23 if (!validSymbol) { - msg += 'Symbol must be between 0 and 12 characters.' + msg += 'Symbol must be between 0 and 23 characters.' } let ownAddress = identitiesList.includes(standardAddress) @@ -527,8 +527,8 @@ export default class AddTokenScreen extends Component { const symbolLength = customSymbol.length let customSymbolError = null - if (symbolLength <= 0 || symbolLength >= 12) { - customSymbolError = 'Symbol must be between 0 and 12 characters.' /* this.context.t('symbolBetweenZeroTen')*/ + if (symbolLength <= 0 || symbolLength >= 23) { + customSymbolError = 'Symbol must be between 0 and 23 characters.' /* this.context.t('symbolBetweenZeroTen')*/ } this.setState({ customSymbol, customSymbolError })