@ -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);
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user