Skip to content

Commit

Permalink
fix owner and manager id swap
Browse files Browse the repository at this point in the history
  • Loading branch information
waterim committed May 7, 2024
1 parent 222419b commit 0d3d626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2384,7 +2384,7 @@ function getUpdateMoneyRequestParams(
let updatedMoneyRequestReport: OnyxTypes.Report | EmptyObject;
if (!iouReport) {
updatedMoneyRequestReport = {};
} else if (ReportUtils.isExpenseReport(iouReport) && typeof iouReport.total === 'number') {
} else if ((ReportUtils.isExpenseReport(iouReport) || ReportUtils.isInvoiceReport(iouReport)) && typeof iouReport.total === 'number') {
// For expense report, the amount is negative, so we should subtract total from diff
updatedMoneyRequestReport = {
...iouReport,
Expand Down

0 comments on commit 0d3d626

Please sign in to comment.