Skip to content

Commit

Permalink
Update indicate deleted members (fixes #5945)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haoran Hu committed May 17, 2020
1 parent d400a8a commit e8a9981
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/app/news/news-list-item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,8 @@ export class NewsListItemComponent implements OnChanges, AfterViewChecked {

shouldShowIndication() {
if (this.shareTarget === this.planetCode) {
if (this.activeMembers.user.findIndex(this.item.doc.user._id) === -1) {
return false;
}
if (this.activeMembers.loginActivities.findIndex(this.item.doc.user.joinDate) === -1) {
return false;
}
return true;
return this.activeMembers.user.findIndex(this.item.doc.user._id) !== -1 &&
this.activeMembers.loginActivities.findIndex(this.item.doc.user.joinDate) !== -1
}
return false;
}
Expand Down

0 comments on commit e8a9981

Please sign in to comment.