Skip to content

Commit

Permalink
Merge pull request #44719 from bernhardoj/fix/44588-paid-system-messa…
Browse files Browse the repository at this point in the history
…ge-isn't-highlighted

Fix paid system message is not highlighted when clicking on the message link
  • Loading branch information
marcaaron authored Jul 16, 2024
2 parents 3d3132c + 9e6b95e commit 7d58aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,11 @@ function ReportScreen({
}

useEffect(() => {
if (!transactionThreadReportID || !route?.params?.reportActionID) {
if (!transactionThreadReportID || !route?.params?.reportActionID || !ReportUtils.isOneTransactionThread(linkedAction?.childReportID ?? '-1', report.reportID, linkedAction)) {
return;
}
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(route?.params?.reportID));
}, [transactionThreadReportID, route?.params?.reportActionID, route?.params?.reportID]);
}, [transactionThreadReportID, route?.params?.reportActionID, route?.params?.reportID, linkedAction, report.reportID]);

if (ReportUtils.isMoneyRequestReport(report) || ReportUtils.isInvoiceReport(report)) {
headerView = (
Expand Down

0 comments on commit 7d58aa6

Please sign in to comment.