From 110403f296bc692e5f2c404269f611fa8d88a5dc Mon Sep 17 00:00:00 2001 From: Anusha Date: Tue, 19 Nov 2024 03:34:48 +0500 Subject: [PATCH] fix back navigation --- src/components/ReportWelcomeText.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ReportWelcomeText.tsx b/src/components/ReportWelcomeText.tsx index 128b7b9e81a1..1e3ce6119315 100644 --- a/src/components/ReportWelcomeText.tsx +++ b/src/components/ReportWelcomeText.tsx @@ -127,7 +127,7 @@ function ReportWelcomeText({report, policy}: ReportWelcomeTextProps) { if (!canEditReportDescription) { return; } - const activeRoute = Navigation.getReportRHPActiveRoute(); + const activeRoute = Navigation.getActiveRoute(); Navigation.navigate(ROUTES.REPORT_DESCRIPTION.getRoute(report?.reportID ?? '-1', activeRoute)); }} style={[styles.renderHTML, canEditReportDescription ? styles.cursorPointer : styles.cursorText]} @@ -155,7 +155,7 @@ function ReportWelcomeText({report, policy}: ReportWelcomeTextProps) { (welcomeMessage?.messageHtml ? ( { - const activeRoute = Navigation.getReportRHPActiveRoute(); + const activeRoute = Navigation.getActiveRoute(); if (canEditReportDescription) { Navigation.navigate(ROUTES.REPORT_DESCRIPTION.getRoute(report?.reportID ?? '-1', activeRoute)); return;