pl-fe: fix

This commit is contained in:
nicole mikołajczyk
2025-07-10 15:13:34 +02:00
committed by GitHub
parent 60e949de74
commit 06c65af212

View File

@ -49,7 +49,7 @@ const usePendingUsersCount = () => {
return useInfiniteQuery({
...pendingUsersQuery,
select: (data) => data.pages.at(-1)?.total || data.pages.flat().length || 0,
select: (data) => data.pages.at(-1)?.total || data.pages.map(page => page.items).flat().length || 0,
enabled: account?.is_admin || account?.is_moderator,
});
};