diff --git a/src/pages/inbox/ReportScreen.tsx b/src/pages/inbox/ReportScreen.tsx index 6cac880586ec..f156906f428e 100644 --- a/src/pages/inbox/ReportScreen.tsx +++ b/src/pages/inbox/ReportScreen.tsx @@ -367,22 +367,6 @@ function ReportScreen({route, navigation, isInSidePanel = false}: ReportScreenPr const {closeSidePanel} = useSidePanel(); - useEffect(() => { - if ( - !isFocused || - !reportIDFromRoute || - report?.reportID || - reportMetadata?.isLoadingInitialReportActions || - reportMetadata?.isOptimisticReport || - isLoadingApp || - userLeavingStatus - ) { - return; - } - - Navigation.goBack(); - }, [isFocused, reportIDFromRoute, report?.reportID, reportMetadata?.isLoadingInitialReportActions, reportMetadata?.isOptimisticReport, isLoadingApp, userLeavingStatus]); - useEffect(() => { if (!prevIsFocused || isFocused) { return;