diff options
author | Eric Bailey <git@esb.lol> | 2023-11-14 16:54:02 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-14 16:54:02 -0600 |
commit | 68767d597e82bf492ca02792182898cd5f64df21 (patch) | |
tree | 6f45dea02f37161e9619f3c6694b17f64431aa30 /src/state/queries/preferences/index.ts | |
parent | ab6e3f2c5d9c658ca5cae76d035f951f056b8d6f (diff) | |
download | voidsky-68767d597e82bf492ca02792182898cd5f64df21.tar.zst |
Fix notification provider order, add comments (#1905)
* Fix notification provider order, add comments * Remove log
Diffstat (limited to 'src/state/queries/preferences/index.ts')
-rw-r--r-- | src/state/queries/preferences/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state/queries/preferences/index.ts b/src/state/queries/preferences/index.ts index 4f10b01a6..7e16d4e9a 100644 --- a/src/state/queries/preferences/index.ts +++ b/src/state/queries/preferences/index.ts @@ -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, }) } |