Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

minor correction

dshukertjrbbbb4227e87a
diff --git a/examples/auth/flutter-mfa/lib/pages/list_mfa_page.dart b/examples/auth/flutter-mfa/lib/pages/list_mfa_page.dart
index c342270c582..069b3db7f8b 100644
--- a/examples/auth/flutter-mfa/lib/pages/list_mfa_page.dart
+++ b/examples/auth/flutter-mfa/lib/pages/list_mfa_page.dart
@@ -55,7 +55,9 @@ class ListMFAPage extends StatelessWidget {
onPressed: () async {
await supabase.auth.mfa.unenroll(factor.id);
await supabase.auth.signOut();
- context.go(RegisterPage.route);
+ if (context.mounted) {
+ context.go(RegisterPage.route);
+ }
},
child: const Text('delete'),
),