mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add a comment explaining why user settings may be undefined
GitOrigin-RevId: 4460d4184cde5639d326da07121b2728d444c782
This commit is contained in:
parent
5597736057
commit
06b0833e33
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue