Skip to content

Commit

Permalink
linting 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon20000 committed Aug 18, 2023
1 parent db53793 commit cea152b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -631,7 +631,7 @@ function ReportActionCompose({
}));
setHighlightedMentionIndex(0);
},
[getMentionOptions, setHighlightedMentionIndex, value, selection],
[getMentionOptions, setHighlightedMentionIndex, value, selection, resetSuggestions],
);

const onSelectionChange = useCallback(
Expand All @@ -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(() => {
Expand Down

0 comments on commit cea152b

Please sign in to comment.