pl-hooks: actually fix

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-10-23 15:37:53 +02:00
parent 070ba03d90
commit 593b35b21f

View File

@ -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);