Skip to content

Commit

Permalink
fix: hide cardReconciliation button when cards not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
koko57 committed Aug 7, 2024
1 parent 08ffbd5 commit 0469cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/accounting/PolicyAccountingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) {
},
];

if (!canUseWorkspaceFeeds) {
if (!canUseWorkspaceFeeds || !policy?.areExpensifyCardsEnabled) {
configurationOptions.splice(2, 1);
}

Expand Down

0 comments on commit 0469cd0

Please sign in to comment.