Skip to content

Commit 3bb5c7c

Browse files
committed
prettier
1 parent 9a27730 commit 3bb5c7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libs/actions/Transaction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,8 +896,8 @@ function changeTransactionsReport(
896896
const isUnreported = reportID === CONST.REPORT.UNREPORTED_REPORT_ID;
897897
const targetReportID = isUnreported ? selfDMReportID : reportID;
898898
const {amount: transactionAmount = 0, currency: transactionCurrency} = getTransactionDetails(transaction, undefined, undefined, allowNegative) ?? {};
899-
const oldReportTotal = (oldReport?.total ?? 0);
900-
const updatedReportTotal = transactionAmount < 0 ? (oldReportTotal - transactionAmount) : (oldReportTotal + transactionAmount);
899+
const oldReportTotal = oldReport?.total ?? 0;
900+
const updatedReportTotal = transactionAmount < 0 ? oldReportTotal - transactionAmount : oldReportTotal + transactionAmount;
901901

902902
if (oldReport && oldReport.currency === transactionCurrency) {
903903
updatedReportTotals[oldReportID] = updatedReportTotals[oldReportID] ? updatedReportTotals[oldReportID] : updatedReportTotal;

0 commit comments

Comments
 (0)