mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
currency util uses uppercase currency code
This commit is contained in:
parent
581489898e
commit
3e0473719b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user