Skip to content

Commit

Permalink
remove iouReportAmount computation
Browse files Browse the repository at this point in the history
  • Loading branch information
kacper-mikolajczak committed Feb 14, 2024
1 parent 76e5b1c commit cbb3f5e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/libs/SidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,6 @@ function getOrderedReportIDs(
// eslint-disable-next-line no-param-reassign
report.displayName = ReportUtils.getReportName(report);

// eslint-disable-next-line no-param-reassign
report.iouReportAmount = ReportUtils.getMoneyRequestReimbursableTotal(report, allReports);

const isPinned = report.isPinned ?? false;
const reportAction = ReportActionsUtils.getReportAction(report.parentReportID ?? '', report.parentReportActionID ?? '');
if (isPinned || ReportUtils.requiresAttentionFromCurrentUser(report, reportAction)) {
Expand Down Expand Up @@ -267,7 +264,6 @@ function getOptionData(
isPinned: false,
hasOutstandingChildRequest: false,
isIOUReportOwner: null,
iouReportAmount: 0,
isChatRoom: false,
isArchivedRoom: false,
shouldShowSubscript: false,
Expand Down Expand Up @@ -432,7 +428,6 @@ function getOptionData(
}

result.isIOUReportOwner = ReportUtils.isIOUOwnedByCurrentUser(result as Report);
result.iouReportAmount = ReportUtils.getMoneyRequestReimbursableTotal(result as Report);

if (!hasMultipleParticipants) {
result.accountID = personalDetail.accountID;
Expand Down

0 comments on commit cbb3f5e

Please sign in to comment.