Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Apr 12, 2024
1 parent 016df60 commit fd337b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,11 @@ function ReportScreen({
const transactionThreadReportID = useMemo(() => ReportActionsUtils.getOneTransactionThreadReportID(report.reportID, reportActions ?? []), [report.reportID, reportActions]);

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

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

0 comments on commit fd337b9

Please sign in to comment.