File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ final appRouter = GoRouter(
15
15
const authenticationPath = Routes .authentication;
16
16
const headlinesFeedPath = Routes .headlinesFeed;
17
17
18
- // If the user is not authenticated, redirect to the headlines feed
18
+ // If the user is authenticated, redirect to the headlines feed
19
19
// unless they are already on a route within the headlines feed.
20
- if (appStatus ! = AppStatus .authenticated) {
20
+ if (appStatus = = AppStatus .authenticated) {
21
21
if (! state.matchedLocation.startsWith (headlinesFeedPath)) {
22
22
return headlinesFeedPath;
23
23
}
24
24
}
25
- // If the user is authenticated, redirect to the authentication page
25
+ // If the user is not authenticated, redirect to the authentication page
26
26
// unless they are already on a route within the authentication section.
27
27
else {
28
28
if (! state.matchedLocation.startsWith (authenticationPath)) {
Original file line number Diff line number Diff line change 1
1
name : ht_main
2
2
description : main headlines toolkit mobile app.
3
- version : 0.30.0
3
+ version : 0.30.1
4
4
publish_to : none
5
5
repository : https://github.com/headlines-toolkit/ht-main
6
6
environment :
You can’t perform that action at this time.
0 commit comments