From 2ff9ef87c13fb440602fe43df605e78f42f251bd Mon Sep 17 00:00:00 2001 From: Dirk Doesburg Date: Fri, 9 Sep 2022 12:56:24 +0200 Subject: [PATCH] Fix redirect in tosti-shift route I made a typo here while rebasing, causing the unauthenticated redirect to happen while authenticated. --- lib/routes.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes.dart b/lib/routes.dart index 85cdd9847..8ba2ba968 100644 --- a/lib/routes.dart +++ b/lib/routes.dart @@ -266,7 +266,7 @@ final List routes = [ redirect: (state) { // Redirect to TostiScreen if not authenticated. // TODO: Is there a nicer way to pass tosti api to other pages? - if (state.extra is TostiApiRepository) return '/tosti'; + if (state.extra is! TostiApiRepository) return '/tosti'; return null; }, pageBuilder: (context, state) => MaterialPage(