Skip to content

Commit

Permalink
Fix: _onErrorEvent on SchemeManagementScheme using unmounted context
Browse files Browse the repository at this point in the history
  • Loading branch information
ivard committed Dec 12, 2023
1 parent cb1d7f9 commit 85825bd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class _SchemeManagementScreenState extends State<SchemeManagementScreen> {
// ErrorEvents are automatically reported by the IrmaRepository if error reporting is enabled.
final errorReported = await IrmaRepositoryProvider.of(context).preferences.getReportErrors().first;

if (!mounted) return;

navigator.push(
MaterialPageRoute(
builder: (context) => ErrorScreen.fromEvent(
Expand Down

0 comments on commit 85825bd

Please sign in to comment.