diff --git a/web/src/ui/App/Footer.tsx b/web/src/ui/App/Footer.tsx
index 69f9d4005..c792d2bcb 100644
--- a/web/src/ui/App/Footer.tsx
+++ b/web/src/ui/App/Footer.tsx
@@ -51,11 +51,13 @@ export const Footer = memo((props: Props) => {
changeLanguageText={t("change language")}
/>
)}
- {spacing}
-
- {" "}
- {t("terms of service")}{" "}
-
+ {env.TERMS_OF_SERVICES !== undefined && spacing}
+ {env.TERMS_OF_SERVICES !== undefined && (
+
+ {" "}
+ {t("terms of service")}{" "}
+
+ )}
{spacing}
{env.ONYXIA_VERSION !== undefined && (