Skip to content

Commit

Permalink
use isThreadFirstChat
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Apr 16, 2024
1 parent a913970 commit ab217f2
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 @@ -1439,7 +1439,7 @@ function canDeleteReportAction(reportAction: OnyxEntry<ReportAction>, reportID:
return false;
}

const linkedReport = isChatThread(report) ? getReport(report?.parentReportID) : report;
const linkedReport = isThreadFirstChat(reportAction, reportID) ? getReport(report?.parentReportID) : report;
if (isActionOwner) {
if (!isEmptyObject(linkedReport) && isMoneyRequestReport(linkedReport)) {
return canAddOrDeleteTransactions(linkedReport);
Expand Down

0 comments on commit ab217f2

Please sign in to comment.