🐛(frontend) fix metadata agent collector enabled check

Fix an incorrect check that caused issues in production when
determining whether the metadata agent collector is enabled.
This commit is contained in:
lebaudantoine
2026-06-15 17:21:26 +02:00
committed by aleb_the_flash
parent 135b99aee7
commit c0feb1ee82
2 changed files with 5 additions and 1 deletions
@@ -6,5 +6,5 @@ export const useIsMetadataCollectorEnabled = () => {
const featureEnabled = useFeatureFlagEnabled(FeatureFlags.metadataCollector)
const isAnalyticsEnabled = useIsAnalyticsEnabled()
return (featureEnabled && isAnalyticsEnabled) || true
return !isAnalyticsEnabled || Boolean(featureEnabled)
}