From 0469cd048cbc6e678978bffac25aea6b6ea42f22 Mon Sep 17 00:00:00 2001 From: Agata Kosior Date: Wed, 7 Aug 2024 18:00:00 +0200 Subject: [PATCH] fix: hide cardReconciliation button when cards not enabled --- src/pages/workspace/accounting/PolicyAccountingPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/accounting/PolicyAccountingPage.tsx b/src/pages/workspace/accounting/PolicyAccountingPage.tsx index 4bde1662f9be..6174561f2c89 100644 --- a/src/pages/workspace/accounting/PolicyAccountingPage.tsx +++ b/src/pages/workspace/accounting/PolicyAccountingPage.tsx @@ -395,7 +395,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) { }, ]; - if (!canUseWorkspaceFeeds) { + if (!canUseWorkspaceFeeds || !policy?.areExpensifyCardsEnabled) { configurationOptions.splice(2, 1); }