Skip to content

Commit

Permalink
revert hard code
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Feb 15, 2024
1 parent 2a48143 commit 9f075c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@ function createSplitsAndOnyxData(
oneOnOneIOUReport.total -= splitAmount;
}
} else {
oneOnOneIOUReport = IOUUtils.updateIOUOwnerAndTotal(oneOnOneIOUReport, currentUserAccountID, splitAmount, currency, false);
oneOnOneIOUReport = IOUUtils.updateIOUOwnerAndTotal(oneOnOneIOUReport, currentUserAccountID, splitAmount, currency);
}

// STEP 3: Build optimistic transaction
Expand Down Expand Up @@ -2363,7 +2363,7 @@ function completeSplitBill(chatReportID: string, reportAction: OnyxTypes.ReportA
oneOnOneIOUReport.total -= splitAmount;
}
} else {
oneOnOneIOUReport = IOUUtils.updateIOUOwnerAndTotal(oneOnOneIOUReport, sessionAccountID, splitAmount, currency ?? '', false);
oneOnOneIOUReport = IOUUtils.updateIOUOwnerAndTotal(oneOnOneIOUReport, sessionAccountID, splitAmount, currency ?? '');
}

const oneOnOneTransaction = TransactionUtils.buildOptimisticTransaction(
Expand Down

0 comments on commit 9f075c4

Please sign in to comment.