diff --git a/packages/web/src/components/Layout/Footer/index.jsx b/packages/web/src/components/Layout/Footer/index.jsx index 759f199c..3a133a7d 100644 --- a/packages/web/src/components/Layout/Footer/index.jsx +++ b/packages/web/src/components/Layout/Footer/index.jsx @@ -19,6 +19,8 @@ const LayoutFooter = () => { const { data: config, isPending: isConfigPending } = useAutomatischConfig(); const formatMessage = useFormatMessage(); + if (config?.data.enableFooter !== true) return null; + const links = [ { key: 'docs', @@ -48,9 +50,6 @@ const LayoutFooter = () => { }, , ]; - - if (config.data.enableFooter !== true) return null; - return (