Skip to content

Commit

Permalink
Extend available Symbol length to 22 to support yDAI+yUSDC+yUSDT+yTUSD
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Apr 29, 2020
1 parent ed841f7 commit 051813f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions old-ui/app/components/add-token/add-token.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 })
Expand Down

0 comments on commit 051813f

Please sign in to comment.