Skip to content

Commit

Permalink
Add search term to memo / prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
thienlnam committed Oct 18, 2023
1 parent e60f8be commit fb1d1b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ function getFilteredOptions(
tags,
recentlyUsedTags,
canInviteUser,
includeSelectedOptions
includeSelectedOptions,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/NewChatPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function NewChatPage({betas, isGroupChat, personalDetails, reports, translate, i
}

return sectionsList;
}, [translate, filteredPersonalDetails, filteredRecentReports, filteredUserToInvite, maxParticipantsReached, selectedOptions]);
}, [translate, filteredPersonalDetails, filteredRecentReports, filteredUserToInvite, maxParticipantsReached, selectedOptions, searchTerm]);

/**
* Removes a selected option from list if already selected. If not already selected add this option to the list.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function MoneyRequestParticipantsSelector({
}

return newSections;
}, [maxParticipantsReached, newChatOptions, participants, personalDetails, translate]);
}, [maxParticipantsReached, newChatOptions, participants, personalDetails, translate, searchTerm]);

/**
* Adds a single participant to the request
Expand Down

0 comments on commit fb1d1b6

Please sign in to comment.