From 76977595bcf707b8c595d77c13fe5b4dddfbe823 Mon Sep 17 00:00:00 2001 From: annaweber Date: Fri, 30 Jan 2026 14:13:29 -0800 Subject: [PATCH 1/2] fix: init fix --- src/pages/inbox/ReportScreen.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/inbox/ReportScreen.tsx b/src/pages/inbox/ReportScreen.tsx index 0b2df4f01a018..75ee09900f786 100644 --- a/src/pages/inbox/ReportScreen.tsx +++ b/src/pages/inbox/ReportScreen.tsx @@ -373,13 +373,14 @@ function ReportScreen({route, navigation, isInSidePanel = false}: ReportScreenPr reportMetadata?.isLoadingInitialReportActions || reportMetadata?.isOptimisticReport || isLoadingApp || - userLeavingStatus + userLeavingStatus || + !reportWasDeleted ) { return; } Navigation.goBack(); - }, [isFocused, reportIDFromRoute, report?.reportID, reportMetadata?.isLoadingInitialReportActions, reportMetadata?.isOptimisticReport, isLoadingApp, userLeavingStatus]); + }, [isFocused, reportIDFromRoute, report?.reportID, reportMetadata?.isLoadingInitialReportActions, reportMetadata?.isOptimisticReport, isLoadingApp, userLeavingStatus, reportWasDeleted]); useEffect(() => { if (!prevIsFocused || isFocused) { From e4b2cc04a24f24107aa248cc551df1a73bee22a8 Mon Sep 17 00:00:00 2001 From: annaweber Date: Sat, 31 Jan 2026 15:43:32 -0800 Subject: [PATCH 2/2] fix: prettier --- src/pages/inbox/ReportScreen.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pages/inbox/ReportScreen.tsx b/src/pages/inbox/ReportScreen.tsx index 75ee09900f786..f0e822d674e03 100644 --- a/src/pages/inbox/ReportScreen.tsx +++ b/src/pages/inbox/ReportScreen.tsx @@ -380,7 +380,16 @@ function ReportScreen({route, navigation, isInSidePanel = false}: ReportScreenPr } Navigation.goBack(); - }, [isFocused, reportIDFromRoute, report?.reportID, reportMetadata?.isLoadingInitialReportActions, reportMetadata?.isOptimisticReport, isLoadingApp, userLeavingStatus, reportWasDeleted]); + }, [ + isFocused, + reportIDFromRoute, + report?.reportID, + reportMetadata?.isLoadingInitialReportActions, + reportMetadata?.isOptimisticReport, + isLoadingApp, + userLeavingStatus, + reportWasDeleted, + ]); useEffect(() => { if (!prevIsFocused || isFocused) {