From b8b89cdd7d2b4e85db534fc268c393f11c0da9ed Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Fri, 14 Jun 2019 14:47:28 -0400 Subject: [PATCH] ensure check of lowercase when finding token by address --- src/utils/currencies.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/currencies.js b/src/utils/currencies.js index a2e1d9b..3ef79fd 100644 --- a/src/utils/currencies.js +++ b/src/utils/currencies.js @@ -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