Skip to content

Commit

Permalink
Merge pull request #49189 from FitseTLT/fix-epxense-delete-button-app…
Browse files Browse the repository at this point in the history
…earing-for-archived-workspace

Fix - Workspace - Able to delete expense from archived workspace
  • Loading branch information
aldo-expensify authored Sep 18, 2024
2 parents 9d57f84 + c8d3f2e commit 6bef045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ function getChildReportNotificationPreference(reportAction: OnyxInputOrEntry<Rep
}

function canAddOrDeleteTransactions(moneyRequestReport: OnyxEntry<Report>): boolean {
if (!isMoneyRequestReport(moneyRequestReport)) {
if (!isMoneyRequestReport(moneyRequestReport) || isArchivedRoom(moneyRequestReport)) {
return false;
}

Expand Down

0 comments on commit 6bef045

Please sign in to comment.