about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-15 19:37:32 -0600
committerGitHub <noreply@github.com>2023-11-15 17:37:32 -0800
commit610eeecd26d604bdb10673307075e738168c4ebb (patch)
tree9ca0183ed8f0661b372df61ab18aced8c8fef895 /src
parent8857ba70c667d6c264f57c2547f175e106c650c6 (diff)
downloadvoidsky-610eeecd26d604bdb10673307075e738168c4ebb.tar.zst
Fix onboarding follows (#1922)
Diffstat (limited to 'src')
-rw-r--r--src/state/queries/suggested-follows.ts1
-rw-r--r--src/view/com/auth/onboarding/RecommendedFollows.tsx3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/state/queries/suggested-follows.ts b/src/state/queries/suggested-follows.ts
index b31e69366..e16088d6a 100644
--- a/src/state/queries/suggested-follows.ts
+++ b/src/state/queries/suggested-follows.ts
@@ -84,7 +84,6 @@ export function useSuggestedFollowsByActorQuery({did}: {did: string}) {
   })
 }
 
-// TODO refactor onboarding to use above, but this is still used
 export function useGetSuggestedFollowersByActor() {
   const {agent} = useSession()
   const queryClient = useQueryClient()
diff --git a/src/view/com/auth/onboarding/RecommendedFollows.tsx b/src/view/com/auth/onboarding/RecommendedFollows.tsx
index efe41562e..aa528cbd8 100644
--- a/src/view/com/auth/onboarding/RecommendedFollows.tsx
+++ b/src/view/com/auth/onboarding/RecommendedFollows.tsx
@@ -25,8 +25,7 @@ export const RecommendedFollows = observer(function RecommendedFollowsImpl({
   const pal = usePalette('default')
   const {isTabletOrMobile} = useWebMediaQueries()
   const {data: suggestedFollows, dataUpdatedAt} = useSuggestedFollowsQuery()
-  const {mutateAsync: getSuggestedFollowsByActor} =
-    useGetSuggestedFollowersByActor()
+  const getSuggestedFollowsByActor = useGetSuggestedFollowersByActor()
   const [additionalSuggestions, setAdditionalSuggestions] = React.useState<{
     [did: string]: AppBskyActorDefs.ProfileView[]
   }>({})