Skip to content

Commit

Permalink
Update src/pages/home/ReportScreen.js
Browse files Browse the repository at this point in the history
Co-authored-by: Fedi Rajhi <[email protected]>
  • Loading branch information
rojiphil and fedirjh authored Jan 13, 2024
1 parent 5eede8b commit 61d3f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/ReportScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function ReportScreen({
Navigation.goBack(ROUTES.HOME, false, true);
}
if (prevReport.parentReportID) {
// If Money Request report is pending for deletion, let us not navigate to Money Request Report
// Prevent navigation to the Money Request Report if it is pending deletion.
const parentReport = ReportUtils.getReport(prevReport.parentReportID);
if (ReportUtils.isMoneyRequestReportPendingDeletion(parentReport)) {
return;
Expand Down

0 comments on commit 61d3f42

Please sign in to comment.