aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-02-03 13:31:00 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-02-03 13:31:00 +0200
commita188d7a4df99f55987dfd8478eef3d4968b21b80 (patch)
treef7e47a50a412857d3a2e31a5a01afd53f10cde5f /src
parentb417eb391795f157a9db894647730f1daf69a1d3 (diff)
downloadDevHive-a188d7a4df99f55987dfd8478eef3d4968b21b80.tar
DevHive-a188d7a4df99f55987dfd8478eef3d4968b21b80.tar.gz
DevHive-a188d7a4df99f55987dfd8478eef3d4968b21b80.zip
Fixed going back to profile button
Diffstat (limited to 'src')
-rw-r--r--src/DevHive.Angular/src/app/components/post-page/post-page.component.ts2
1 files changed, 1 insertions, 1 deletions
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 {