From cbb3f5ed4a4a64b3832d0ba25e7f553475ba6278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Miko=C5=82ajczak?= Date: Mon, 12 Feb 2024 13:54:27 +0100 Subject: [PATCH] remove iouReportAmount computation --- src/libs/SidebarUtils.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libs/SidebarUtils.ts b/src/libs/SidebarUtils.ts index 6e46ec320066..94b07b9546b9 100644 --- a/src/libs/SidebarUtils.ts +++ b/src/libs/SidebarUtils.ts @@ -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)) { @@ -267,7 +264,6 @@ function getOptionData( isPinned: false, hasOutstandingChildRequest: false, isIOUReportOwner: null, - iouReportAmount: 0, isChatRoom: false, isArchivedRoom: false, shouldShowSubscript: false, @@ -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;