aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/post/post.component.ts
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-15 09:26:36 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-15 09:26:36 +0200
commitb33f929226e8836f1f94bdb4cc72c5b8281d76a3 (patch)
treeaa2104a3c698f953a62c0d550eebc7c3574d3c3f /src/app/components/post/post.component.ts
parent59e9970d78cc1285a42306942fc4b2d7d7a9c9bc (diff)
downloadDevHive-Angular-b33f929226e8836f1f94bdb4cc72c5b8281d76a3.tar
DevHive-Angular-b33f929226e8836f1f94bdb4cc72c5b8281d76a3.tar.gz
DevHive-Angular-b33f929226e8836f1f94bdb4cc72c5b8281d76a3.zip
Fixed post not loading properly when user not logged in
Diffstat (limited to 'src/app/components/post/post.component.ts')
-rw-r--r--src/app/components/post/post.component.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/components/post/post.component.ts b/src/app/components/post/post.component.ts
index 319e9cd..24ecdb4 100644
--- a/src/app/components/post/post.component.ts
+++ b/src/app/components/post/post.component.ts
@@ -53,7 +53,9 @@ export class PostComponent implements OnInit {
next: (result: object) => {
Object.assign(this.user, result);
- this.highlightButtonsOnInit();
+ if (this.loggedIn) {
+ this.highlightButtonsOnInit();
+ }
this.loaded = true;
}