fix: put back router to it's pre-debug state (oups)

This commit is contained in:
Alzalia 2025-08-08 01:37:18 +02:00
parent 72d235b35b
commit 658585b572

View file

@ -10,7 +10,7 @@ import 'package:seshat/ui/home_page/home_page.dart';
import 'package:seshat/ui/sell_page/sell_page.dart';
GoRouter router(AuthRepository authRepository) => GoRouter(
initialLocation: Routes.login,
initialLocation: Routes.add,
redirect: (context, state) async {
final loggedIn = await context.read<AuthRepository>().isLoggedIn;
final logginIn = state.matchedLocation == Routes.login;
@ -20,7 +20,7 @@ GoRouter router(AuthRepository authRepository) => GoRouter(
}
if (logginIn) {
return Routes.login;
return Routes.add;
}
return null;