Skip to content

Commit 62bb2bf

Browse files
authored
Merge pull request Expensify#65706 from ijmalik/64590-2
[CP Staging] Show Delete option when isReportOpenOrProcessing is true
2 parents 8956422 + a720112 commit 62bb2bf

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)