diff --git a/web/hooks/use-global-config.ts b/web/hooks/use-global-config.ts index 8653a731..32200b8d 100644 --- a/web/hooks/use-global-config.ts +++ b/web/hooks/use-global-config.ts @@ -6,7 +6,7 @@ export const useGlobalConfig = () => { const [globalConfig, setGlobalConfig] = useState(null) useEffect(() => { - listenForGlobalConfig(setGlobalConfig) + return listenForGlobalConfig(setGlobalConfig) }, []) return globalConfig }