mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Add a comment explaining why user settings may be undefined
GitOrigin-RevId: 4460d4184cde5639d326da07121b2728d444c782
This commit is contained in:
@@ -11,6 +11,8 @@ import type { UserSettingsScope } from '../utils/api'
|
||||
|
||||
export default function useUserWideSettings() {
|
||||
const saveUserSettings = useSaveUserSettings()
|
||||
|
||||
// this may be undefined on test environments
|
||||
const [userSettings] = useScopeValue<UserSettingsScope | undefined>('settings', true)
|
||||
|
||||
const setOverallTheme = useSetOverallTheme()
|
||||
|
||||
Reference in New Issue
Block a user