aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-22 15:49:01 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-22 15:49:01 +0200
commitb42156ce3a6c3148ceab4c52e00ac41c7b6400a0 (patch)
treea9be5ec34bdd8824d1776f1006960ffc5a8f6359
parent7329675be5912a4924b32cf41cd5ac87cb33e456 (diff)
downloadDevHive-Angular-b42156ce3a6c3148ceab4c52e00ac41c7b6400a0.tar
DevHive-Angular-b42156ce3a6c3148ceab4c52e00ac41c7b6400a0.tar.gz
DevHive-Angular-b42156ce3a6c3148ceab4c52e00ac41c7b6400a0.zip
Logging out of account in profile settings will redirect to login screen (and not profile page)
-rw-r--r--src/app/components/profile-settings/profile-settings.component.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/components/profile-settings/profile-settings.component.ts b/src/app/components/profile-settings/profile-settings.component.ts
index b314a9a..7863258 100644
--- a/src/app/components/profile-settings/profile-settings.component.ts
+++ b/src/app/components/profile-settings/profile-settings.component.ts
@@ -279,7 +279,7 @@ export class ProfileSettingsComponent implements OnInit {
logout(): void {
this._tokenService.logoutUserFromSessionStorage();
- this.goToProfile();
+ this._router.navigate(['/login']);
}
toggleLanguages(): void {