From 7fc0015afdcddc281e98e453550857d05b8a0807 Mon Sep 17 00:00:00 2001 From: Hayata Suenaga Date: Mon, 15 Apr 2024 09:34:57 -0700 Subject: [PATCH] chore: remove redundant logic --- src/pages/workspace/WorkspaceMoreFeaturesPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx b/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx index fa43f039b6bc..f37921f07c36 100644 --- a/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx +++ b/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx @@ -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) => { @@ -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) => {