Skip to content

Commit

Permalink
🚚 Feat: update logout functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Sye0w committed Oct 3, 2024
1 parent ebcee72 commit d0db1d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/app/components/post-card/post-card.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
}

img {
width: 24px;
height: 24px;
width: 1.75rem;
height: 1.75rem;
border-radius: 50%;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/views/auth/user-profile/user-profile.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class UserProfileComponent implements OnInit {
async logOut() {
try {
await this.authService.logout();
this.router.navigate(['/login']);
this.router.navigate(['/auth/login']);
} catch (error) {
console.error('Error logging out:', error);
this.snackBar.open('Error logging out', 'Close', {
Expand Down

0 comments on commit d0db1d0

Please sign in to comment.