Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SujalLama authored and lmmrssa committed Dec 7, 2021
1 parent 3bd6807 commit 8d9d2e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/news/news-list-item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class NewsListItemComponent implements OnInit, OnChanges, AfterViewChecke
ngOnInit() {
if (this.comments && this.newReplies.length > 0) {
this.unreadReplies = this.newReplies.filter(reply => reply.doc.replyTo === this.item.doc._id);
if (this.unreadReplies.length > 0) {
if (this.unreadReplies.length > 0) {
this.replyExist = true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/news/news-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class NewsListComponent implements OnInit, OnChanges {
finalize(() => this.dialogsLoadingService.stop())
).subscribe(() => {});
}
})
});
}

showPreviousReplies() {
Expand Down
8 changes: 4 additions & 4 deletions src/app/news/news.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ export class NewsService {
]).subscribe(([ newsItems, avatars ]) => {
this.newsUpdated$.next(
newsItems.map((item: any) => ({
doc: item,
sharedDate: this.findShareDate(item, viewId),
avatar: this.findAvatar(item.user, avatars),
_id: item._id
doc: item,
sharedDate: this.findShareDate(item, viewId),
avatar: this.findAvatar(item.user, avatars),
_id: item._id
})
));
});
Expand Down

0 comments on commit 8d9d2e3

Please sign in to comment.