Skip to content

Commit

Permalink
use ownerID since this is an optimistic report preview, so that means…
Browse files Browse the repository at this point in the history
… they would have also created the report
  • Loading branch information
grgia committed Sep 25, 2024
1 parent 65bf81d commit b704277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4827,9 +4827,9 @@ function buildOptimisticReportPreview(
},
],
created,
accountID: iouReport?.managerID ?? -1,
accountID: iouReport?.ownerAccountID ?? -1,
// The preview is initially whispered if created with a receipt, so the actor is the current user as well
actorAccountID: hasReceipt ? currentUserAccountID : iouReport?.managerID ?? -1,
actorAccountID: hasReceipt ? currentUserAccountID : iouReport?.ownerAccountID ?? -1,
childReportID: childReportID ?? iouReport?.reportID,
childMoneyRequestCount: 1,
childLastMoneyRequestComment: comment,
Expand Down

0 comments on commit b704277

Please sign in to comment.