Skip to content

Commit

Permalink
Merge pull request #27729 from namhihi237/fix-26072-select-show-not-f…
Browse files Browse the repository at this point in the history
…ound

fix select show no result found
  • Loading branch information
neil-marcellini authored Sep 20, 2023
2 parents a29650f + c30147c commit 3a0efdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pages/NewChatPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ function NewChatPage({betas, isGroupChat, personalDetails, reports, translate})
const headerMessage = OptionsListUtils.getHeaderMessage(
filteredPersonalDetails.length + filteredRecentReports.length !== 0,
Boolean(filteredUserToInvite),
searchTerm,
searchTerm.trim(),
maxParticipantsReached,
_.some(selectedOptions, (participant) => participant.searchText.toLowerCase().includes(searchTerm.trim().toLowerCase())),
);
const isOptionsDataReady = ReportUtils.isReportDataReady() && OptionsListUtils.isPersonalDetailsReady(personalDetails);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ function MoneyRequestParticipantsSelector({
const headerMessage = OptionsListUtils.getHeaderMessage(
newChatOptions.personalDetails.length + newChatOptions.recentReports.length !== 0,
Boolean(newChatOptions.userToInvite),
searchTerm,
searchTerm.trim(),
maxParticipantsReached,
_.some(participants, (participant) => participant.login.toLowerCase().includes(searchTerm.trim().toLowerCase())),
);
const isOptionsDataReady = ReportUtils.isReportDataReady() && OptionsListUtils.isPersonalDetailsReady(personalDetails);

Expand Down

0 comments on commit 3a0efdf

Please sign in to comment.