Add a comment explaining why user settings may be undefined

GitOrigin-RevId: 4460d4184cde5639d326da07121b2728d444c782
This commit is contained in:
M Fahru 2022-12-28 10:21:57 -07:00 committed by Copybot
parent 5597736057
commit 06b0833e33

View file

@ -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()