address comments on github

This commit is contained in:
Czarek Nakamoto 2024-10-17 12:39:13 +02:00
parent bb959d0372
commit 159f433dd8
3 changed files with 2 additions and 6 deletions

View file

@ -65,7 +65,6 @@ class WalletLoadingService {
} catch (e) {
corruptedWalletsSeeds += "\nFailed to fetch $name seeds: $e";
}
secureStorageShared.write(key: "corruptedWalletsSeed", value: corruptedWalletsSeeds);
// try opening another wallet that is not corrupted to give user access to the app
final walletInfoSource = await CakeHive.openBox<WalletInfo>(WalletInfo.boxName);
@ -99,7 +98,6 @@ class WalletLoadingService {
} catch (e) {
corruptedWalletsSeeds += "\nFailed to fetch $name seeds: $e";
}
secureStorageShared.write(key: "corruptedWalletsSeed", value: corruptedWalletsSeeds);
}
}

View file

@ -207,8 +207,6 @@ class _DesktopWalletSelectionDropDownState extends State<DesktopWalletSelectionD
hideProgressText();
setState(() {});
} catch (e) {
await ExceptionHandler.resetLastPopupDate();
await ExceptionHandler.onError(FlutterErrorDetails(exception: e));
if (mounted) {
changeProcessText(S.of(context).wallet_list_failed_to_load(wallet.name, e.toString()));
}

View file

@ -79,7 +79,7 @@ class ExceptionHandler {
_file!.writeAsString("", mode: FileMode.write);
}
} catch (e, s) {
await _saveException(e.toString(), s);
_saveException(e.toString(), s);
}
}
@ -99,7 +99,7 @@ class ExceptionHandler {
return;
}
await _saveException(
_saveException(
errorDetails.exceptionAsString(),
errorDetails.stack,
library: errorDetails.library,