From 3e0473719b63f624d94f4f1d517c41e5a23b1257 Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 4 Jan 2023 18:09:43 -0500 Subject: [PATCH] currency util uses uppercase currency code --- core/src/main/java/bisq/core/locale/CurrencyUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/bisq/core/locale/CurrencyUtil.java b/core/src/main/java/bisq/core/locale/CurrencyUtil.java index 625c849299..44bdeb905e 100644 --- a/core/src/main/java/bisq/core/locale/CurrencyUtil.java +++ b/core/src/main/java/bisq/core/locale/CurrencyUtil.java @@ -218,8 +218,9 @@ public class CurrencyUtil { * contains 3 entries (CryptoCurrency, Fiat, Undefined). */ public static boolean isCryptoCurrency(String currencyCode) { - if (currencyCode != null && isCryptoCurrencyMap.containsKey(currencyCode)) { - return isCryptoCurrencyMap.get(currencyCode); + if (currencyCode != null) currencyCode = currencyCode.toUpperCase(); + if (currencyCode != null && isCryptoCurrencyMap.containsKey(currencyCode.toUpperCase())) { + return isCryptoCurrencyMap.get(currencyCode.toUpperCase()); } boolean isCryptoCurrency;