Skip to content

Commit

Permalink
Merge pull request #40157 from tienifr/fix/40087
Browse files Browse the repository at this point in the history
fix: Blank page after returning to IOU report from thread and deleting the other request
  • Loading branch information
youssef-lr authored Apr 13, 2024
2 parents 5602b63 + fd337b9 commit db9e01c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,14 @@ function ReportScreen({
}

const transactionThreadReportID = useMemo(() => ReportActionsUtils.getOneTransactionThreadReportID(report.reportID, reportActions ?? []), [report.reportID, reportActions]);

useEffect(() => {
if (!transactionThreadReportID || !route.params.reportActionID) {
return;
}
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(route.params.reportID));
}, [transactionThreadReportID, route.params.reportActionID, route.params.reportID]);

if (ReportUtils.isMoneyRequestReport(report)) {
headerView = (
<MoneyReportHeader
Expand Down

0 comments on commit db9e01c

Please sign in to comment.