diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index 8741006efab1..3e067d5c8756 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -282,7 +282,8 @@ function ReportScreen({ const didSubscribeToReportLeavingEvents = useRef(false); useEffect(() => { - if (!report || !report.reportID || shouldHideReport) { + if (!report.reportID || shouldHideReport) { + wasReportAccessibleRef.current = false; return; } wasReportAccessibleRef.current = true;