Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eh2077 committed Nov 14, 2023
1 parent 375d0d2 commit 0845f62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/home/report/ReportActionCompose/SuggestionEmoji.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,10 @@ function SuggestionEmoji({
);

useEffect(() => {
if (isComposerFocused) {
calculateEmojiSuggestion(selection.end);
if (!isComposerFocused) {
return;
}
calculateEmojiSuggestion(selection.end);
}, [selection, calculateEmojiSuggestion, isComposerFocused]);

const onSelectionChange = useCallback(
Expand Down

0 comments on commit 0845f62

Please sign in to comment.