ensure check of lowercase when finding token by address

This commit is contained in:
Barry Gitarts 2019-06-14 14:47:28 -04:00
parent 2b68443b4d
commit b8b89cdd7d
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export const currencies = [
}
]
export const getTokenByAddress = value => currencies.find(currency => currency.value === value)
export const getTokenByAddress = value => currencies.find(currency => currency.value.toLowerCase() === value.toLowerCase())
export const getTokenLabel = value => {
const token = getTokenByAddress(value)
return token ? token.label : null