Skip to content

Commit

Permalink
address comments on github
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Oct 17, 2024
1 parent bb959d0 commit 159f433
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions lib/core/wallet_loading_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -99,7 +98,6 @@ class WalletLoadingService {
} catch (e) {
corruptedWalletsSeeds += "\nFailed to fetch $name seeds: $e";
}
secureStorageShared.write(key: "corruptedWalletsSeed", value: corruptedWalletsSeeds);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/exception_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ExceptionHandler {
_file!.writeAsString("", mode: FileMode.write);
}
} catch (e, s) {
await _saveException(e.toString(), s);
_saveException(e.toString(), s);
}
}

Expand All @@ -99,7 +99,7 @@ class ExceptionHandler {
return;
}

await _saveException(
_saveException(
errorDetails.exceptionAsString(),
errorDetails.stack,
library: errorDetails.library,
Expand Down

0 comments on commit 159f433

Please sign in to comment.