From 9c3e5686f36bc4ba76d510f27adc89f378a3a658 Mon Sep 17 00:00:00 2001 From: Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> Date: Tue, 10 Dec 2024 07:16:37 +0100 Subject: fix/frontend: map pagination fix (#246) --- frontend/src/api/Maps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/src/api/Maps.ts') diff --git a/frontend/src/api/Maps.ts b/frontend/src/api/Maps.ts index 3832a2e..aa967ce 100644 --- a/frontend/src/api/Maps.ts +++ b/frontend/src/api/Maps.ts @@ -8,8 +8,8 @@ export const get_map_summary = async (map_id: string): Promise => { return response.data.data; }; -export const get_map_leaderboard = async (map_id: string): Promise => { - const response = await axios.get(url(`maps/${map_id}/leaderboards`)); +export const get_map_leaderboard = async (map_id: string, page: string): Promise => { + const response = await axios.get(url(`maps/${map_id}/leaderboards?page=${page}`)); if (!response.data.success) { return undefined; } -- cgit v1.2.3