Fix notification provider order, add comments (#1905)
* Fix notification provider order, add comments * Remove log
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user