Fix notification provider order, add comments (#1905)

* Fix notification provider order, add comments

* Remove log
This commit is contained in:
Eric Bailey 2023-11-14 16:54:02 -06:00 committed by GitHub
parent ab6e3f2c5d
commit 68767d597e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 45 deletions

View file

@ -32,6 +32,7 @@ export const usePreferencesQueryKey = ['getPreferences']
export function usePreferencesQuery() {
const {agent, hasSession} = useSession()
return useQuery({
enabled: hasSession,
queryKey: usePreferencesQueryKey,
queryFn: async () => {
const res = await agent.getPreferences()
@ -83,7 +84,6 @@ export function usePreferencesQuery() {
}
return preferences
},
enabled: hasSession,
})
}