Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Angular
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/DevHive.Angular/src/app/components/post-page/post-page.component.ts2
diff --git a/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts b/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts
index ef046e1..413ff80 100644
--- a/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts
+++ b/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts
@@ -92,7 +92,7 @@ export class PostPageComponent implements OnInit {
}
backToProfile(): void {
- this._router.navigate(['/profile/' + this.post.creatorUsername]);
+ this._router.navigate(['/profile/' + this._tokenService.getUsernameFromSessionStorageToken()]);
}
toLogin(): void {