Skip to content

Commit

Permalink
Fix onboarding follows (#1922)
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey authored Nov 16, 2023
1 parent 8857ba7 commit 610eeec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/state/queries/suggested-follows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 1 addition & 2 deletions src/view/com/auth/onboarding/RecommendedFollows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
}>({})
Expand Down

0 comments on commit 610eeec

Please sign in to comment.