@@ -5,7 +5,6 @@ import FeatureName from './FeatureName'
55import FeatureDescription from './FeatureDescription'
66import TagValues from 'components/tags/TagValues'
77import VCSProviderTag from 'components/tags/VCSProviderTag'
8- import Utils from 'common/utils/utils'
98
109export interface ProjectFeatureRowProps {
1110 projectFlag : ProjectFlag
@@ -26,17 +25,13 @@ const ProjectFeatureRow: FC<ProjectFeatureRowProps> = ({
2625} ) => {
2726 const { description } = projectFlag
2827
29- const isCodeReferencesEnabled = Utils . getFlagsmithHasFeature (
30- 'git_code_references' ,
31- )
3228 const hasScannedCodeReferences =
33- isCodeReferencesEnabled && projectFlag ?. code_references_counts ?. length > 0
34- const codeReferencesCounts = isCodeReferencesEnabled
35- ? projectFlag ?. code_references_counts ?. reduce (
36- ( acc , curr ) => acc + curr . count ,
37- 0 ,
38- ) || 0
39- : 0
29+ projectFlag ?. code_references_counts ?. length > 0
30+ const codeReferencesCounts =
31+ projectFlag ?. code_references_counts ?. reduce (
32+ ( acc , curr ) => acc + curr . count ,
33+ 0 ,
34+ ) || 0
4035
4136 return (
4237 < >
@@ -66,7 +61,7 @@ const ProjectFeatureRow: FC<ProjectFeatureRowProps> = ({
6661 < div className = 'mx-0 flex-1 flex-column' >
6762 < div className = 'd-flex align-items-center' >
6863 < FeatureName name = { projectFlag . name } />
69- { isCodeReferencesEnabled && hasScannedCodeReferences && (
64+ { hasScannedCodeReferences && (
7065 < Tooltip
7166 title = {
7267 < VCSProviderTag
@@ -115,7 +110,7 @@ const ProjectFeatureRow: FC<ProjectFeatureRowProps> = ({
115110 ) }
116111 < div className = 'flex-1 align-items-center flex-wrap' >
117112 < FeatureName name = { projectFlag . name } />
118- { isCodeReferencesEnabled && hasScannedCodeReferences && (
113+ { hasScannedCodeReferences && (
119114 < Tooltip
120115 title = {
121116 < VCSProviderTag
0 commit comments