ensure check of lowercase when finding token by address
This commit is contained in:
parent
2b68443b4d
commit
b8b89cdd7d
|
@ -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 => {
|
export const getTokenLabel = value => {
|
||||||
const token = getTokenByAddress(value)
|
const token = getTokenByAddress(value)
|
||||||
return token ? token.label : null
|
return token ? token.label : null
|
||||||
|
|
Loading…
Reference in New Issue