From b33f929226e8836f1f94bdb4cc72c5b8281d76a3 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 15 Mar 2021 09:26:36 +0200 Subject: Fixed post not loading properly when user not logged in --- src/app/components/post/post.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3