From cea152bc582aa0cf405756ac77779f948811b4a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Kapa=C5=82a?= Date: Fri, 18 Aug 2023 18:51:35 +0200 Subject: [PATCH] linting 3 --- src/pages/home/report/ReportActionCompose.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/home/report/ReportActionCompose.js b/src/pages/home/report/ReportActionCompose.js index 503aa43980b5..2363c8d57420 100644 --- a/src/pages/home/report/ReportActionCompose.js +++ b/src/pages/home/report/ReportActionCompose.js @@ -530,7 +530,7 @@ function ReportActionCompose({ setSuggestionValues((prevState) => ({...prevState, ...nextState})); setHighlightedEmojiIndex(0); }, - [value, windowHeight, composerHeight, isSmallScreenWidth, preferredLocale, setHighlightedEmojiIndex], + [value, windowHeight, composerHeight, isSmallScreenWidth, preferredLocale, setHighlightedEmojiIndex, resetSuggestions], ); const getMentionOptions = useCallback( @@ -631,7 +631,7 @@ function ReportActionCompose({ })); setHighlightedMentionIndex(0); }, - [getMentionOptions, setHighlightedMentionIndex, value, selection], + [getMentionOptions, setHighlightedMentionIndex, value, selection, resetSuggestions], ); const onSelectionChange = useCallback( @@ -647,7 +647,7 @@ function ReportActionCompose({ calculateEmojiSuggestion(e.nativeEvent.selection.end); calculateMentionSuggestion(e.nativeEvent.selection.end); }, - [calculateEmojiSuggestion, calculateMentionSuggestion, resetSuggestions, value], + [calculateEmojiSuggestion, calculateMentionSuggestion], ); const setUpComposeFocusManager = useCallback(() => {