Skip to content

Commit

Permalink
Merge pull request #41768 from waterim/fix-41287
Browse files Browse the repository at this point in the history
Fix: Right caret disappears after editing and saving details several times
  • Loading branch information
MonilBhavsar authored May 13, 2024
2 parents 3e4a0b8 + 0d3d626 commit 6f9f7ab
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 @@ -2389,7 +2389,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 6f9f7ab

Please sign in to comment.