This commit is contained in:
Matthew Fosse 2024-03-06 17:20:10 -08:00
parent d734af351a
commit 24135c5930

View file

@ -95,6 +95,11 @@ abstract class NFTViewModelBase with Store {
} catch (e) {
isLoading = false;
log(e.toString());
// this is just a connection error that happens while tor is initializing
// so we can ignore it:
if (e.toString().contains("Unexpected character")) {
return;
}
bottomSheetService.queueBottomSheet(
isModalDismissible: true,
widget: BottomSheetMessageDisplayWidget(
@ -145,6 +150,11 @@ abstract class NFTViewModelBase with Store {
isImportNFTLoading = false;
} catch (e) {
isImportNFTLoading = false;
// this is just a connection error that happens while tor is initializing
// so we can ignore it:
if (e.toString().contains("Unexpected character")) {
return;
}
bottomSheetService.queueBottomSheet(
isModalDismissible: true,
widget: BottomSheetMessageDisplayWidget(