Skip to content

Commit

Permalink
Merge pull request #51686 from Expensify/rodrigo-fix-search-for-repor…
Browse files Browse the repository at this point in the history
…t-to-mention
  • Loading branch information
blimpich authored Oct 29, 2024
2 parents cfdd59e + 24eb28e commit 9f92c5e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ function SuggestionMention(
useCallback(() => {
const foundSuggestionsCount = suggestionValues.suggestedMentions.length;
if (suggestionValues.prefixType === '#' && foundSuggestionsCount < 5 && isGroupPolicyReport) {
ReportUserActions.searchInServer(value, policyID);
ReportUserActions.searchInServer(suggestionValues.mentionPrefix, policyID);
}
}, [suggestionValues.suggestedMentions.length, suggestionValues.prefixType, policyID, value, isGroupPolicyReport]),
}, [suggestionValues.suggestedMentions.length, suggestionValues.prefixType, suggestionValues.mentionPrefix, policyID, isGroupPolicyReport]),
CONST.TIMING.SEARCH_OPTION_LIST_DEBOUNCE_TIME,
);

Expand Down

0 comments on commit 9f92c5e

Please sign in to comment.