Website Summary Files Commits Branches @commit @diff @stats
path: root / src / app / components
diff options
context:
space:
mode:
Commitb42156ce3a6c3148ceab4c52e00ac41c7b6400a0 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-03-22 15:49:01 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-03-22 15:49:01 +0200
Filesa9be5ec34bdd8824d1776f1006960ffc5a8f6359 /src/app/components
DevHive-Angular-b42156ce3a6c3148ceab4c52e00ac41c7b6400a0.tar
DevHive-Angular-b42156ce3a6c3148ceab4c52e00ac41c7b6400a0.tar.gz
DevHive-Angular-b42156ce3a6c3148ceab4c52e00ac41c7b6400a0.zip
Parent7329675be5912a4924b32cf41cd5ac87cb33e456 (diff)
Logging out of account in profile settings will redirect to login screen (and not profile page)
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/app/components/profile-settings/profile-settings.component.ts2
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 {