From 1735db5232f32346764a3071a2113af39a0020bc Mon Sep 17 00:00:00 2001 From: Sujal Lama Date: Tue, 14 Sep 2021 12:59:14 +0545 Subject: [PATCH] lint fix --- src/app/news/news-list-item.component.ts | 2 +- src/app/news/news-list.component.ts | 2 +- src/app/news/news.service.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/news/news-list-item.component.ts b/src/app/news/news-list-item.component.ts index d6e367b037..96fc354dbd 100644 --- a/src/app/news/news-list-item.component.ts +++ b/src/app/news/news-list-item.component.ts @@ -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; } } diff --git a/src/app/news/news-list.component.ts b/src/app/news/news-list.component.ts index 7d56239805..077ad769de 100644 --- a/src/app/news/news-list.component.ts +++ b/src/app/news/news-list.component.ts @@ -103,7 +103,7 @@ export class NewsListComponent implements OnInit, OnChanges { finalize(() => this.dialogsLoadingService.stop()) ).subscribe(() => {}); } - }) + }); } showPreviousReplies() { diff --git a/src/app/news/news.service.ts b/src/app/news/news.service.ts index 6141ca7062..584a4f0bfb 100644 --- a/src/app/news/news.service.ts +++ b/src/app/news/news.service.ts @@ -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 }) )); });