Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon20000 committed Aug 18, 2023
1 parent 0fd1d9d commit db53793
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 @@ -501,7 +501,7 @@ function ReportActionCompose({
*/
const calculateEmojiSuggestion = useCallback(
(selectionEnd) => {
if (shouldBlockEmojiCalc.current || !this.state.value) {
if (shouldBlockEmojiCalc.current || !value) {
shouldBlockEmojiCalc.current = false;
resetSuggestions();
return;
Expand Down Expand Up @@ -583,7 +583,7 @@ function ReportActionCompose({

const calculateMentionSuggestion = useCallback(
(selectionEnd) => {
if (shouldBlockMentionCalc.current || this.state.selection.end < 1) {
if (shouldBlockMentionCalc.current || selection.end < 1) {
shouldBlockMentionCalc.current = false;
resetSuggestions();
return;
Expand Down Expand Up @@ -631,7 +631,7 @@ function ReportActionCompose({
}));
setHighlightedMentionIndex(0);
},
[getMentionOptions, setHighlightedMentionIndex, value],
[getMentionOptions, setHighlightedMentionIndex, value, selection],
);

const onSelectionChange = useCallback(
Expand Down

0 comments on commit db53793

Please sign in to comment.