Skip to content

Commit

Permalink
Merge pull request Expensify#34464 from Tony-MK/fix/33797
Browse files Browse the repository at this point in the history
fix/33797: Conversation - Back arrow leads to LHN instead of group lists after page refresh in a profile screen
  • Loading branch information
Gonals authored Feb 21, 2024
2 parents 61d9dfe + 62e03ba commit 9392d81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/ReportParticipantsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function ReportParticipantsPage({report, personalDetails}: ReportParticipantsPag
{({safeAreaPaddingBottomStyle}) => (
<FullPageNotFoundView shouldShow={!report || ReportUtils.isArchivedRoom(report)}>
<HeaderWithBackButton
onBackButtonPress={report ? () => Navigation.goBack(ROUTES.REPORT_WITH_ID_DETAILS.getRoute(report.reportID)) : undefined}
title={translate(
ReportUtils.isChatRoom(report) ||
ReportUtils.isPolicyExpenseChat(report) ||
Expand All @@ -113,7 +114,7 @@ function ReportParticipantsPage({report, personalDetails}: ReportParticipantsPag
if (!option.accountID) {
return;
}
Navigation.navigate(ROUTES.PROFILE.getRoute(option.accountID));
Navigation.navigate(ROUTES.PROFILE.getRoute(option.accountID, report ? ROUTES.REPORT_PARTICIPANTS.getRoute(report.reportID) : undefined));
}}
hideSectionHeaders
showTitleTooltip
Expand Down

0 comments on commit 9392d81

Please sign in to comment.