Skip to content

Commit a720112

Browse files
committed
Condition added - Show Delete option if isReportOpenOrProcessing is true
1 parent 15c2eb6 commit a720112

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/ReportSecondaryActionUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ function isDeleteAction(report: Report, reportTransactions: Transaction[], repor
425425
}
426426

427427
if (isInvoiceReport) {
428-
return report?.ownerAccountID === getCurrentUserAccountID();
428+
return report?.ownerAccountID === getCurrentUserAccountID() && isReportOpenOrProcessing;
429429
}
430430

431431
// Users cannot delete a report in the unreported or IOU cases, but they can delete individual transactions.

0 commit comments

Comments
 (0)