Skip to content

Commit

Permalink
fix trackexpense options showing when parent report is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
twilight2294 authored Nov 19, 2024
1 parent 445fc42 commit 8903831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ function ReportDetailsPage({policies, report, route}: ReportDetailsPageProps) {
});
}

if (isTrackExpenseReport) {
if (isTrackExpenseReport && !isDeletedParentAction) {
const actionReportID = ReportUtils.getOriginalReportID(report.reportID, parentReportAction) ?? '0';
const whisperAction = ReportActionsUtils.getTrackExpenseActionableWhisper(iouTransactionID, moneyRequestReport?.reportID ?? '0');
const actionableWhisperReportActionID = whisperAction?.reportActionID ?? '0';
Expand Down

0 comments on commit 8903831

Please sign in to comment.