mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-02-18 14:26:31 +00:00
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…
x
Reference in New Issue
Block a user