diff --git a/lib/routes/fiat_currencies/fiat_currency_settings.dart b/lib/routes/fiat_currencies/fiat_currency_settings.dart index 5e4cec8b0..fbeab7fe8 100644 --- a/lib/routes/fiat_currencies/fiat_currency_settings.dart +++ b/lib/routes/fiat_currencies/fiat_currency_settings.dart @@ -170,7 +170,7 @@ class FiatCurrencySettingsState extends State { String _subtitle(BreezTranslations texts, FiatCurrency currencyData) { final localizedName = currencyData.info.localizedName; - if (localizedName != null) { + if (localizedName.isNotEmpty) { for (var localizedName in localizedName) { if (localizedName.locale == texts.locale) { return localizedName.name; diff --git a/lib/utils/fiat_conversion.dart b/lib/utils/fiat_conversion.dart index 4d3c54c22..e3dd5d2c8 100644 --- a/lib/utils/fiat_conversion.dart +++ b/lib/utils/fiat_conversion.dart @@ -80,7 +80,7 @@ class FiatConversion { LocaleOverrides? _localeOverride(String languageTag, String languageCode) { final localeOverrides = currencyData.info.localeOverrides; - if (localeOverrides == null || localeOverrides.isEmpty) return null; + if (localeOverrides.isEmpty) return null; if (localeOverrides.any((e) => e.locale == languageTag)) { return localeOverrides.firstWhere((e) => e.locale == languageTag); }