From 89385e0212771672e06dec2025609e313eaa37cf Mon Sep 17 00:00:00 2001 From: Krishna Chaitanya Date: Thu, 12 Jun 2025 09:55:41 +0530 Subject: [PATCH] remove primary action from secondary actions --- src/components/MoneyReportHeader.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/MoneyReportHeader.tsx b/src/components/MoneyReportHeader.tsx index 3ff79309e73..46109baea89 100644 --- a/src/components/MoneyReportHeader.tsx +++ b/src/components/MoneyReportHeader.tsx @@ -850,9 +850,9 @@ function MoneyReportHeader({ subMenuItems: Object.values(paymentButtonOptions), }, }; - - const applicableSecondaryActions = secondaryActions.map((action) => secondaryActionsImplementation[action]).filter((action) => action?.shouldShow !== false); - + const applicableSecondaryActions = secondaryActions + .map((action) => secondaryActionsImplementation[action]) + .filter((action) => action?.shouldShow !== false && action?.value !== primaryAction); useEffect(() => { if (!transactionThreadReportID) { return;