Skip to content

Commit

Permalink
Merge pull request #36566 from callstack-internal/audit/implementatio…
Browse files Browse the repository at this point in the history
…n/getOrderedReportIDs-iouReportAmount-removal

[NoQA] [Audit][Implementation] getOrderedReportIDs - iouReportAmount removal
  • Loading branch information
mountiny authored Feb 16, 2024
2 parents a6fe014 + a792fe8 commit a88f89a
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 @@ -163,9 +163,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.getMoneyRequestSpendBreakdown(report, allReports).totalDisplaySpend;

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

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

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

0 comments on commit a88f89a

Please sign in to comment.