Skip to content

Commit

Permalink
fix back navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodebrute committed Nov 19, 2024
1 parent b1d7832 commit 110403f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ReportWelcomeText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
Expand Down Expand Up @@ -155,7 +155,7 @@ function ReportWelcomeText({report, policy}: ReportWelcomeTextProps) {
(welcomeMessage?.messageHtml ? (
<PressableWithoutFeedback
onPress={() => {
const activeRoute = Navigation.getReportRHPActiveRoute();
const activeRoute = Navigation.getActiveRoute();
if (canEditReportDescription) {
Navigation.navigate(ROUTES.REPORT_DESCRIPTION.getRoute(report?.reportID ?? '-1', activeRoute));
return;
Expand Down

0 comments on commit 110403f

Please sign in to comment.