This commit is contained in:
github-actions[bot] 2022-10-12 22:39:48 +00:00 committed by GitHub
commit bdb0de56cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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