Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeY0846 committed Oct 15, 2024
1 parent 40c2c14 commit 62f6182
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,11 @@ export class QuestionSubmissionFormComponent implements DoCheck {
const searchName = searchText.trim().toLowerCase();
if (searchName.length === 0) return recipients;
if (searchName.includes(' ')) {
return recipients.filter((r) => !this.isRecipientSelected(r) && r.recipientName.toLowerCase().includes(searchName));
return recipients.filter((r) => !this.isRecipientSelected(r)
&& r.recipientName.toLowerCase().includes(searchName));
}
return recipients.filter((r) => !this.isRecipientSelected(r) && r.recipientName.split(' ').some((s) => s.toLowerCase().includes(searchName)));
return recipients.filter((r) => !this.isRecipientSelected(r)
&& r.recipientName.split(' ').some((s) => s.toLowerCase().includes(searchName)));
}

private sortRecipientsBySectionTeam(): void {
Expand Down

0 comments on commit 62f6182

Please sign in to comment.