Skip to content

Commit

Permalink
Merge pull request #53944 from FitseTLT/fix-hold-menu-not-appearing-f…
Browse files Browse the repository at this point in the history
…or-expense-reports-created-offline

Fix - Held expense - Hold option is missing when submitting expense to workspace offline as employee
  • Loading branch information
grgia authored Dec 18, 2024
2 parents 7bcb38c + be7a4d1 commit f7ce91f
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 @@ -5189,7 +5189,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 f7ce91f

Please sign in to comment.