Skip to content

Commit

Permalink
used transactionDetails for currency
Browse files Browse the repository at this point in the history
  • Loading branch information
Pujan92 committed Feb 20, 2024
1 parent 4228d15 commit 56c7548
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,7 @@ function getUpdateMoneyRequestParams(
? IOUUtils.updateIOUOwnerAndTotal(iouReport, updatedReportAction.actorAccountID ?? -1, diff, TransactionUtils.getCurrency(transaction), false, true)
: {};
}
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
updatedMoneyRequestReport.cachedTotal = CurrencyUtils.convertToDisplayString(updatedMoneyRequestReport.total, updatedTransaction?.modifiedCurrency || updatedTransaction?.currency);
updatedMoneyRequestReport.cachedTotal = CurrencyUtils.convertToDisplayString(updatedMoneyRequestReport.total, transactionDetails?.currency);

optimisticData.push({
onyxMethod: Onyx.METHOD.MERGE,
Expand Down

0 comments on commit 56c7548

Please sign in to comment.