pl-fe: fix query key in familiar followers query

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2024-12-15 01:33:57 +01:00
parent 46432256f7
commit b6bdc96338

View File

@ -13,7 +13,7 @@ const useFamiliarFollowers = (accountId: string) => {
const { isLoggedIn } = useLoggedIn();
return useQuery({
queryKey: ['accountsLists', 'endorsedAccounts', accountId],
queryKey: ['accountsLists', 'familiarFollowers', accountId],
queryFn: () => client.accounts.getFamiliarFollowers([accountId]).then((response) => {
const result = response.find(({ id }) => id === accountId);
if (!result) return [];