diff --git a/src/state/queries/app-passwords.ts b/src/state/queries/app-passwords.ts index 6a7e436101..c6cda03479 100644 --- a/src/state/queries/app-passwords.ts +++ b/src/state/queries/app-passwords.ts @@ -10,13 +10,15 @@ export function useAppPasswordsQuery() { return useQuery({ staleTime: STALE.MINUTES.ONE, queryKey: RQKEY(), - queryFn: async () => { - const res = await getAgent().com.atproto.server.listAppPasswords({}) - return res.data.passwords - }, + queryFn: appPasswordsQueryFn, }) } +async function appPasswordsQueryFn() { + const res = await getAgent().com.atproto.server.listAppPasswords({}) + return res.data.passwords +} + export function useAppPasswordCreateMutation() { const queryClient = useQueryClient() return useMutation<