Skip to content

Commit

Permalink
chore: remove redundant logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayata Suenaga committed Apr 15, 2024
1 parent 6ec2a6c commit 7fc0015
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/workspace/WorkspaceMoreFeaturesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function WorkspaceMoreFeaturesPage({policy, route}: WorkspaceMoreFeaturesPagePro
icon: Illustrations.FolderOpen,
titleTranslationKey: 'workspace.moreFeatures.categories.title',
subtitleTranslationKey: 'workspace.moreFeatures.categories.subtitle',
isActive: (policy?.areCategoriesEnabled ?? false) || hasAccountingConnection,
isActive: policy?.areCategoriesEnabled ?? false,
disabled: hasAccountingConnection,
pendingAction: policy?.pendingFields?.areCategoriesEnabled,
action: (isEnabled: boolean) => {
Expand All @@ -89,7 +89,7 @@ function WorkspaceMoreFeaturesPage({policy, route}: WorkspaceMoreFeaturesPagePro
icon: Illustrations.Tag,
titleTranslationKey: 'workspace.moreFeatures.tags.title',
subtitleTranslationKey: 'workspace.moreFeatures.tags.subtitle',
isActive: (policy?.areTagsEnabled ?? false) || hasAccountingConnection,
isActive: policy?.areTagsEnabled ?? false,
disabled: hasAccountingConnection,
pendingAction: policy?.pendingFields?.areTagsEnabled,
action: (isEnabled: boolean) => {
Expand Down

0 comments on commit 7fc0015

Please sign in to comment.