Return listener

This commit is contained in:
James Grugett 2022-10-12 17:39:13 -05:00
parent 04a126707b
commit 18042cd4d1

View File

@ -6,7 +6,7 @@ export const useGlobalConfig = () => {
const [globalConfig, setGlobalConfig] = useState<GlobalConfig | null>(null)
useEffect(() => {
listenForGlobalConfig(setGlobalConfig)
return listenForGlobalConfig(setGlobalConfig)
}, [])
return globalConfig
}