Skip to content

Commit

Permalink
fix early return condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Sep 15, 2023
1 parent 933b72b commit e3c8200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function ReportActionsView(props) {
}, [props.report, didSubscribeToReportTypingEvents, reportID]);

useEffect(() => {
if (!isFocused && context.reactionListRef && context.reactionListRef.current) {
if (isFocused || !context.reactionListRef || !context.reactionListRef.current) {
return;
}
context.reactionListRef.current.hideReactionList();
Expand Down

0 comments on commit e3c8200

Please sign in to comment.