From 2e8a6df7cbe549595c51cadc8bdbced94b340bb5 Mon Sep 17 00:00:00 2001 From: ganzz4 Date: Thu, 29 May 2025 15:37:41 +0300 Subject: [PATCH] fix: Error shows up after approving held expenses which are also duplicates #62423 --- src/components/MoneyReportHeader.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/MoneyReportHeader.tsx b/src/components/MoneyReportHeader.tsx index 7c994bd9f05a..0a2ce7172848 100644 --- a/src/components/MoneyReportHeader.tsx +++ b/src/components/MoneyReportHeader.tsx @@ -677,12 +677,7 @@ function MoneyReportHeader({ text: translate('iou.approve', getAmount(CONST.REPORT.SECONDARY_ACTIONS.APPROVE)), icon: Expensicons.ThumbsUp, value: CONST.REPORT.SECONDARY_ACTIONS.APPROVE, - onSelected: () => { - if (!moneyRequestReport) { - return; - } - approveMoneyRequest(moneyRequestReport); - }, + onSelected: confirmApproval, }, [CONST.REPORT.SECONDARY_ACTIONS.UNAPPROVE]: { text: translate('iou.unapprove'),