minor correction

This commit is contained in:
dshukertjr committed 2023-05-04 21:26:40 +09:00
1 parent 0ef5b97dfb
commit bbbb4227e8
1 file changed
+3 -1
@@ -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'),
),