Skip to content

Commit

Permalink
fix: add condition to check enable expensify card feature
Browse files Browse the repository at this point in the history
  • Loading branch information
thelullabyy committed Feb 21, 2025
1 parent 3bd82ba commit de935db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ function WorkspaceMemberDetailsPage({personalDetails, policy, route}: WorkspaceM
return <NotFoundPage />;
}

const shouldShowCardsSection = !!paymentBankAccountID || hasMultipleFeeds;
const shouldShowCardsSection = (!!paymentBankAccountID && !!policy?.areExpensifyCardsEnabled) || hasMultipleFeeds;

return (
<AccessOrNotFoundWrapper
Expand Down

0 comments on commit de935db

Please sign in to comment.