diff --git a/Frontend/lib/mih_components/mih_layout/mih_app_drawer.dart b/Frontend/lib/mih_components/mih_layout/mih_app_drawer.dart index e2b97130..2e28b7a7 100644 --- a/Frontend/lib/mih_components/mih_layout/mih_app_drawer.dart +++ b/Frontend/lib/mih_components/mih_layout/mih_app_drawer.dart @@ -287,7 +287,11 @@ class _MIHAppDrawerState extends State { }); if (await SuperTokens.doesSessionExist() == false) { - Navigator.of(context).popAndPushNamed('/'); + Navigator.of(context).pop(); + Navigator.of(context).popAndPushNamed( + '/', + arguments: AuthArguments(true, false), + ); } }, ), @@ -316,7 +320,12 @@ class _MIHAppDrawerState extends State { .changeTheme(ThemeMode.dark); //print("Dark Mode: $darkm"); } - Navigator.of(context).popAndPushNamed('/'); + Navigator.of(context).pop(); + Navigator.of(context).popAndPushNamed( + '/', + arguments: AuthArguments(true, false), + ); + // Navigator.of(context).popAndPushNamed('/',); }); }, child: Image(image: logoThemeSwitch),