aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/api/Maps.ts
diff options
context:
space:
mode:
authorWolfboy248 <121288977+Wolfboy248@users.noreply.github.com>2024-12-10 07:16:37 +0100
committerGitHub <noreply@github.com>2024-12-10 09:16:37 +0300
commit9c3e5686f36bc4ba76d510f27adc89f378a3a658 (patch)
treec55033ed5e4f153e027767be160fbcf94364f755 /frontend/src/api/Maps.ts
parentdocs/lphub: seperate contributors into a new file (#244) (diff)
downloadlphub-9c3e5686f36bc4ba76d510f27adc89f378a3a658.tar.gz
lphub-9c3e5686f36bc4ba76d510f27adc89f378a3a658.tar.bz2
lphub-9c3e5686f36bc4ba76d510f27adc89f378a3a658.zip
fix/frontend: map pagination fix (#246)
Diffstat (limited to 'frontend/src/api/Maps.ts')
-rw-r--r--frontend/src/api/Maps.ts4
1 files changed, 2 insertions, 2 deletions
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<MapSummary> => {
8 return response.data.data; 8 return response.data.data;
9}; 9};
10 10
11export const get_map_leaderboard = async (map_id: string): Promise<MapLeaderboard | undefined> => { 11export const get_map_leaderboard = async (map_id: string, page: string): Promise<MapLeaderboard | undefined> => {
12 const response = await axios.get(url(`maps/${map_id}/leaderboards`)); 12 const response = await axios.get(url(`maps/${map_id}/leaderboards?page=${page}`));
13 if (!response.data.success) { 13 if (!response.data.success) {
14 return undefined; 14 return undefined;
15 } 15 }