about summary refs log tree commit diff
path: root/src/state/queries/profile-follows.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/queries/profile-follows.ts')
-rw-r--r--src/state/queries/profile-follows.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/queries/profile-follows.ts b/src/state/queries/profile-follows.ts
index 1919409c7..6d832a841 100644
--- a/src/state/queries/profile-follows.ts
+++ b/src/state/queries/profile-follows.ts
@@ -26,7 +26,7 @@ export function useProfileFollowsQuery(
     limit: PAGE_SIZE,
   },
 ) {
-  const {getAgent} = useAgent()
+  const agent = useAgent()
   return useInfiniteQuery<
     AppBskyGraphGetFollows.OutputSchema,
     Error,
@@ -37,7 +37,7 @@ export function useProfileFollowsQuery(
     staleTime: STALE.MINUTES.ONE,
     queryKey: RQKEY(did || ''),
     async queryFn({pageParam}: {pageParam: RQPageParam}) {
-      const res = await getAgent().app.bsky.graph.getFollows({
+      const res = await agent.app.bsky.graph.getFollows({
         actor: did || '',
         limit: limit || PAGE_SIZE,
         cursor: pageParam,