From be7a4d1c6da91d7f0d73adff79c468ae33b97798 Mon Sep 17 00:00:00 2001 From: FitseTLT Date: Wed, 11 Dec 2024 00:18:38 +0300 Subject: [PATCH] set the correct actorAccountID of the report preview of expense report --- src/libs/ReportUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index a419df09538d..9e025f7ad123 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -5162,7 +5162,7 @@ function buildOptimisticReportPreview( const hasReceipt = TransactionUtils.hasReceipt(transaction); const message = getReportPreviewMessage(iouReport); const created = DateUtils.getDBTime(); - const reportActorAccountID = (isInvoiceReport(iouReport) ? iouReport?.ownerAccountID : iouReport?.managerID) ?? -1; + const reportActorAccountID = (isInvoiceReport(iouReport) || isExpenseReport(iouReport) ? iouReport?.ownerAccountID : iouReport?.managerID) ?? -1; return { reportActionID: reportActionID ?? NumberUtils.rand64(), reportID: chatReport?.reportID,