From 756ecf9af0eff0b65000b03913bd9bd1a09bdee3 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 12 Jun 2024 12:09:52 -0700 Subject: [PATCH] nits --- src/screens/StarterPack/Main/ProfilesList.tsx | 2 -- src/state/queries/list-members.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/screens/StarterPack/Main/ProfilesList.tsx b/src/screens/StarterPack/Main/ProfilesList.tsx index c5cf2c4389..67c5c44c27 100644 --- a/src/screens/StarterPack/Main/ProfilesList.tsx +++ b/src/screens/StarterPack/Main/ProfilesList.tsx @@ -40,9 +40,7 @@ export const ProfilesList = React.forwardRef( const getSortedProfiles = () => { if (!profiles) return - const myIndex = profiles.findIndex(p => p.did === currentAccount?.did) - return [ profiles[myIndex], ...profiles.slice(0, myIndex), diff --git a/src/state/queries/list-members.ts b/src/state/queries/list-members.ts index 816609263f..3131a2ec3b 100644 --- a/src/state/queries/list-members.ts +++ b/src/state/queries/list-members.ts @@ -28,7 +28,7 @@ export function useListMembersQuery(uri?: string, limit: number = PAGE_SIZE) { queryKey: RQKEY(uri ?? ''), async queryFn({pageParam}: {pageParam: RQPageParam}) { const res = await agent.app.bsky.graph.getList({ - list: uri!, + list: uri!, // the enabled flag will prevent this from running until uri is set limit, cursor: pageParam, })