aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/post/post.component.ts
diff options
context:
space:
mode:
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;
}