[Bugfix] Mobile - Fixed navigating back to splash screen (#11)

Fixes a small bug where the user could navigate back to the splashscreen
when starting the app.
Also fixes switching users and going back from the login screen.

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2024-10-13 18:40:16 +02:00 committed by GitHub
parent 5e882b2177
commit c53b9b2281
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -211,7 +211,7 @@ class _LoginPageState extends ConsumerState<LoginScreen> {
void loggedInGoToHome() {
ref.read(lockScreenActiveProvider.notifier).update((state) => false);
if (context.mounted) {
context.router.navigate(const DashboardRoute());
context.router.replaceAll([const DashboardRoute()]);
}
}