Skip to content

Commit

Permalink
Use optimistic transaction in updating report preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Li committed Aug 19, 2023
1 parent daa7e85 commit e057aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,9 @@ function getMoneyRequestInformation(report, participant, comment, amount, curren

let reportPreviewAction = isNewIOUReport ? null : ReportActionsUtils.getReportPreviewAction(chatReport.reportID, iouReport.reportID);
if (reportPreviewAction) {
reportPreviewAction = ReportUtils.updateReportPreview(iouReport, reportPreviewAction, comment, existingTransaction);
reportPreviewAction = ReportUtils.updateReportPreview(iouReport, reportPreviewAction, comment, optimisticTransaction);
} else {
reportPreviewAction = ReportUtils.buildOptimisticReportPreview(chatReport, iouReport, comment, existingTransaction);
reportPreviewAction = ReportUtils.buildOptimisticReportPreview(chatReport, iouReport, comment, optimisticTransaction);
}

// Add optimistic personal details for participant
Expand Down

0 comments on commit e057aca

Please sign in to comment.