Skip to content

Commit e8f998a

Browse files
committed
fix(auth): prevent authenticated route access after logout
1 parent d8bc720 commit e8f998a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/presentation/settings/mobile/settings_view_mobile.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class _SettingsViewMobileState extends State<SettingsViewMobile> {
2525
bloc: locator<LoginRegisterBloc>(),
2626
listener: (context, state) {
2727
if (state is LogOutSuccess) {
28-
context.push('/login');
28+
context.go('/login');
2929
}
3030
},
3131
child: Container(

0 commit comments

Comments
 (0)