From 266fd69debc91df1ff38c5bc5b4343596148c42c Mon Sep 17 00:00:00 2001 From: Anusha Date: Wed, 9 Oct 2024 22:39:39 +0500 Subject: [PATCH] fix dependency --- src/pages/home/ReportScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/ReportScreen.tsx b/src/pages/home/ReportScreen.tsx index 587fe84c75b4..4a87d51e3c82 100644 --- a/src/pages/home/ReportScreen.tsx +++ b/src/pages/home/ReportScreen.tsx @@ -667,7 +667,7 @@ function ReportScreen({route, currentReportID = '', navigation}: ReportScreenPro return; } Navigation.setParams({reportActionID: ''}); - }, [prevIsLinkedActionDeleted, isLinkedActionDeleted]); + }, [isLinkedActionBecomesDeleted]); // If user redirects to an inaccessible whisper via a deeplink, on a report they have access to, // then we set reportActionID as empty string, so we display them the report and not the "Not found page".