diff --git a/src/features/leaderboard/hooks/use-top-workout-users.ts b/src/features/leaderboard/hooks/use-top-workout-users.ts index c9a5d8f..4b123d0 100644 --- a/src/features/leaderboard/hooks/use-top-workout-users.ts +++ b/src/features/leaderboard/hooks/use-top-workout-users.ts @@ -10,15 +10,12 @@ export interface UseTopWorkoutUsersOptions { } export function useTopWorkoutUsers(options: UseTopWorkoutUsersOptions = {}) { - const { limit = 10, refetchInterval } = options; + const { limit = 20, refetchInterval } = options; return useQuery({ queryKey: ["top-workout-users", limit], queryFn: async () => { - const result = await getTopWorkoutUsersAction({ - limit, - }); - + const result = await getTopWorkoutUsersAction(); return result?.data || []; }, staleTime: 5 * 60 * 1000, // 5 minutes