pl-fe: fix

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-04-20 21:27:58 +02:00
parent 584ec12518
commit 024160d00a
4 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,7 @@ const useEndorsedAccounts = (accountId: string) => {
return useQuery({
queryKey: ['accountsLists', 'endorsedAccounts', accountId],
queryFn: () => client.accounts.getAccountEndorsements(accountId).then((accounts) => {
queryFn: () => client.accounts.getAccountEndorsements(accountId).then(({ items: accounts }) => {
dispatch(importEntities({ accounts }));
return accounts.map(({ id }) => id);
}),