Skip to content

Commit

Permalink
comment updated for formatSectionsFromSearchTerm.
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
  • Loading branch information
Krishna2323 committed Jan 28, 2024
1 parent efa6bfa commit 40b30f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@ function formatSectionsFromSearchTerm(
personalDetails: OnyxEntry<PersonalDetailsList> = {},
shouldGetOptionDetails = false,
): SectionForSearchTerm {
// We show the selected participants at the top of the list when there is no search term
// We show the selected participants at the top of the list when there is no search term or maximum number of participants has already been selected
// However, if there is a search term we remove the selected participants from the top of the list unless they are part of the search results
// This clears up space on mobile views, where if you create a group with 4+ people you can't see the selected participants and the search results at the same time
if (searchTerm === '' || maxOptionsSelected) {
Expand Down

0 comments on commit 40b30f0

Please sign in to comment.