Skip to content

Commit

Permalink
set the correct actorAccountID of the report preview of expense report
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Dec 10, 2024
1 parent fca45c9 commit be7a4d1
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 @@ -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,
Expand Down

0 comments on commit be7a4d1

Please sign in to comment.