diff --git a/packages/applications/legacy/.env.template b/packages/applications/legacy/.env.template
index bd3faaa8e5..4c3fcf63f0 100644
--- a/packages/applications/legacy/.env.template
+++ b/packages/applications/legacy/.env.template
@@ -68,6 +68,3 @@ SENTRY_DSN=
# UMAMI
TRACKER_WEBSITE_ID=
-
-# FEATURE FLAGS
-FEATURE_FLAG_SHOW_GARANTIES_FINANCIERES=
diff --git a/packages/applications/legacy/src/controllers/project/getProjectPage.ts b/packages/applications/legacy/src/controllers/project/getProjectPage.ts
index 92e7b835e3..f530d0a4e4 100644
--- a/packages/applications/legacy/src/controllers/project/getProjectPage.ts
+++ b/packages/applications/legacy/src/controllers/project/getProjectPage.ts
@@ -143,7 +143,7 @@ v1Router.get(
let garantiesFinancières: ProjectDataForProjectPage['garantiesFinancières'] | undefined =
undefined;
- if (projet.appelOffre.isSoumisAuxGF) {
+ if (projet.appelOffre.isSoumisAuxGF && process.env.FEATURE_FLAG_SHOW_GARANTIES_FINANCIERES) {
garantiesFinancières = await getGarantiesFinancières(identifiantProjetValueType);
}
diff --git a/packages/applications/legacy/src/views/pages/projectDetailsPage/sections/InfoGenerales.tsx b/packages/applications/legacy/src/views/pages/projectDetailsPage/sections/InfoGenerales.tsx
index 8fedf90378..a8d5055fab 100644
--- a/packages/applications/legacy/src/views/pages/projectDetailsPage/sections/InfoGenerales.tsx
+++ b/packages/applications/legacy/src/views/pages/projectDetailsPage/sections/InfoGenerales.tsx
@@ -11,8 +11,6 @@ import { Routes } from '@potentiel-libraries/routes';
import { GarantiesFinancières } from '@potentiel-domain/laureat';
-const { FEATURE_FLAG_SHOW_GARANTIES_FINANCIERES } = process.env;
-
type InfoGeneralesProps = {
project: ProjectDataForProjectPage;
role: UserRole;
@@ -43,7 +41,6 @@ export const InfoGenerales = ({
puissance < appelOffre.periode.noteThreshold.volumeReserve.puissanceMax;
const shouldDisplayGf =
- FEATURE_FLAG_SHOW_GARANTIES_FINANCIERES &&
isClasse &&
!isAbandoned &&
[
@@ -60,7 +57,7 @@ export const InfoGenerales = ({
return (
} className="flex gap-5 flex-col">
- {shouldDisplayGf && garantiesFinancières && (
+ {garantiesFinancières && shouldDisplayGf && (