From 18042cd4d18c2b56d6f9ad54f6bd95c9d53f2ff2 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Wed, 12 Oct 2022 17:39:13 -0500 Subject: [PATCH] Return listener --- web/hooks/use-global-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }