diff options
| -rw-r--r-- | src/app/components/post/post.component.ts | 4 |
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; } |
