diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-03-15 09:26:36 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-03-15 09:26:36 +0200 |
| commit | b33f929226e8836f1f94bdb4cc72c5b8281d76a3 (patch) | |
| tree | aa2104a3c698f953a62c0d550eebc7c3574d3c3f /src/app | |
| parent | 59e9970d78cc1285a42306942fc4b2d7d7a9c9bc (diff) | |
| download | DevHive-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')
| -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; } |
