Skip to content

Commit 22b1535

Browse files
author
Guilherme Andrade Pinto
committed
Fix problem on mobile
1 parent d0d35f0 commit 22b1535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/posts/posts/posts.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class PostsComponent implements OnInit {
3131
}
3232

3333
selectFirstPost() {
34-
if (this.deviceService.isDesktop) {
34+
if (this.deviceService.isDesktop()) {
3535
const [first] = this.posts;
3636
this.selectedPost = first;
3737
}

0 commit comments

Comments
 (0)