currency util uses uppercase currency code

This commit is contained in:
woodser 2023-01-04 18:09:43 -05:00
parent 581489898e
commit 3e0473719b

View File

@ -218,8 +218,9 @@ public class CurrencyUtil {
* contains 3 entries (CryptoCurrency, Fiat, Undefined). * contains 3 entries (CryptoCurrency, Fiat, Undefined).
*/ */
public static boolean isCryptoCurrency(String currencyCode) { public static boolean isCryptoCurrency(String currencyCode) {
if (currencyCode != null && isCryptoCurrencyMap.containsKey(currencyCode)) { if (currencyCode != null) currencyCode = currencyCode.toUpperCase();
return isCryptoCurrencyMap.get(currencyCode); if (currencyCode != null && isCryptoCurrencyMap.containsKey(currencyCode.toUpperCase())) {
return isCryptoCurrencyMap.get(currencyCode.toUpperCase());
} }
boolean isCryptoCurrency; boolean isCryptoCurrency;