diff --git a/packages/pl-hooks/lib/hooks/accounts/use-account-relationship.ts b/packages/pl-hooks/lib/hooks/accounts/use-account-relationship.ts index 7c7501eff..f4c3c82b4 100644 --- a/packages/pl-hooks/lib/hooks/accounts/use-account-relationship.ts +++ b/packages/pl-hooks/lib/hooks/accounts/use-account-relationship.ts @@ -8,7 +8,7 @@ const useAccountRelationship = (accountId?: string) => { const queryClient = usePlHooksQueryClient(); return useQuery({ - queryKey: ['accounts', 'relationships', accountId], + queryKey: ['relationships', 'entities', accountId], queryFn: async () => (await client.accounts.getRelationships([accountId!]))[0], enabled: !!accountId, }, queryClient);