Skip to content

Commit 2612505

Browse files
committed
fix: suggestions
1 parent c0ab3be commit 2612505

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/libs/OptionsListUtils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,8 +2360,7 @@ function formatSectionsFromSearchTerm(
23602360
// This will add them to the list of options, deduping them if they already exist in the other lists
23612361
const selectedParticipantsWithoutDetails = selectedOptions.filter((participant) => {
23622362
const accountID = participant.accountID ?? null;
2363-
const searchTerms = getPersonalDetailSearchTerms(participant);
2364-
const isPartOfSearchTerm = searchTerms.join(' ').toLowerCase().includes(cleanSearchTerm);
2363+
const isPartOfSearchTerm = getPersonalDetailSearchTerms(participant).join(' ').toLowerCase().includes(cleanSearchTerm);
23652364
const isReportInRecentReports = filteredRecentReports.some((report) => report.accountID === accountID) || filteredWorkspaceChats.some((report) => report.accountID === accountID);
23662365
const isReportInPersonalDetails = filteredPersonalDetails.some((personalDetail) => personalDetail.accountID === accountID);
23672366

0 commit comments

Comments
 (0)