Skip to content

Commit

Permalink
feat(login): auto redirect to game from login page if you're authed
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 15, 2023
1 parent 82e7b49 commit c25f48c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/app/pages/login/login.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export class LoginPage implements OnInit {

async ngOnInit() {
this.getFormattedAnnouncement();

if (this.authService.isAuthenticated()) this.router.navigate(['/']);
}

async getFormattedAnnouncement() {
Expand Down

0 comments on commit c25f48c

Please sign in to comment.