Skip to content

Commit

Permalink
Merge pull request #53050 from bernhardoj/fix/optimistic-report-is-no…
Browse files Browse the repository at this point in the history
…t-set-correctly

[CP Staging] Fix optimistic report status is not set correctly

(cherry picked from commit 2b4ff21)

(CP triggered by mountiny)
  • Loading branch information
mountiny authored and OSBotify committed Nov 25, 2024
1 parent ca8bc77 commit c83c8b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1550,6 +1550,7 @@ function buildOnyxDataForTrackExpense(
value: {
pendingFields: null,
errorFields: null,
isOptimisticReport: false,
},
},
{
Expand Down
1 change: 1 addition & 0 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2330,6 +2330,7 @@ function addPolicyReport(policyReport: ReportUtils.OptimisticChatReport) {
pendingFields: {
addWorkspaceRoom: null,
},
isOptimisticReport: false,
},
},
{
Expand Down
1 change: 1 addition & 0 deletions src/libs/actions/TeachersUnite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function referTeachersUniteVolunteer(partnerUserID: string, firstName: string, l
key: `${ONYXKEYS.COLLECTION.REPORT}${publicRoomReportID}`,
value: {
...optimisticPublicRoom,
isOptimisticReport: false,
reportID: publicRoomReportID,
policyName: CONST.TEACHERS_UNITE.POLICY_NAME,
},
Expand Down

0 comments on commit c83c8b5

Please sign in to comment.