fix: put back router to it's pre-debug state (oups)
This commit is contained in:
parent
72d235b35b
commit
658585b572
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Reference in a new issue