We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a99a33 commit 3bc921fCopy full SHA for 3bc921f
1 file changed
lib/services/price.dart
@@ -159,9 +159,19 @@ class PriceAPI {
159
160
for (final map in coinGeckoData) {
161
final String coinName = map["name"] as String;
162
- final coin = AppConfig.getCryptoCurrencyByPrettyName(
163
- coinName == "Factor" ? "Fact0rn" : coinName,
164
- );
+ late CryptoCurrency coin;
+ try {
+ coin = AppConfig.getCryptoCurrencyByPrettyName(
165
+ coinName == "Factor" ? "Fact0rn" : coinName,
166
+ );
167
+ } catch (e, s) {
168
+ Logging.instance.e(
169
+ "Failed to find matching app coin for $coinName. Moving on",
170
+ error: e,
171
+ stackTrace: s,
172
173
+ continue;
174
+ }
175
176
try {
177
final price = Decimal.parse(map["current_price"].toString());
0 commit comments