pl-hooks: minor fix

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-10-23 15:29:48 +02:00
parent 3e2d8207b4
commit 070ba03d90

View File

@ -8,7 +8,7 @@ const useAccountRelationship = (accountId?: string) => {
const queryClient = usePlHooksQueryClient();
return useQuery({
queryKey: ['accounts', 'entities', accountId],
queryKey: ['accounts', 'relationships', accountId],
queryFn: async () => (await client.accounts.getRelationships([accountId!]))[0],
enabled: !!accountId,
}, queryClient);