aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/api/Maps.ts
diff options
context:
space:
mode:
authorFifthWit <fifthwitbusiness@gmail.com>2025-01-30 13:11:48 -0600
committerFifthWit <fifthwitbusiness@gmail.com>2025-01-30 13:11:48 -0600
commit81342e2579165ebfdb28c749dc5225141721a419 (patch)
tree8e5759c20b92408048fe5ac44f48e2df2a00ab9b /frontend/src/api/Maps.ts
parentfixed issues with useCallback (diff)
downloadlphub-81342e2579165ebfdb28c749dc5225141721a419.tar.gz
lphub-81342e2579165ebfdb28c749dc5225141721a419.tar.bz2
lphub-81342e2579165ebfdb28c749dc5225141721a419.zip
switched to double quotes
Diffstat (limited to '')
-rw-r--r--frontend/src/api/Maps.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/frontend/src/api/Maps.ts b/frontend/src/api/Maps.ts
index 3a22f88..2485941 100644
--- a/frontend/src/api/Maps.ts
+++ b/frontend/src/api/Maps.ts
@@ -1,12 +1,12 @@
1import axios from 'axios'; 1import axios from "axios";
2import { url } from '@api/Api'; 2import { url } from "@api/Api";
3import { MapDiscussionContent, UploadRunContent } from '@customTypes/Content'; 3import { MapDiscussionContent, UploadRunContent } from "@customTypes/Content";
4import { 4import {
5 MapSummary, 5 MapSummary,
6 MapLeaderboard, 6 MapLeaderboard,
7 MapDiscussions, 7 MapDiscussions,
8 MapDiscussion, 8 MapDiscussion,
9} from '@customTypes/Map'; 9} from "@customTypes/Map";
10 10
11export const get_map_summary = async (map_id: string): Promise<MapSummary> => { 11export const get_map_summary = async (map_id: string): Promise<MapSummary> => {
12 const response = await axios.get(url(`maps/${map_id}/summary`)); 12 const response = await axios.get(url(`maps/${map_id}/summary`));
@@ -27,9 +27,9 @@ export const get_map_leaderboard = async (
27 // map the kind of leaderboard 27 // map the kind of leaderboard
28 data.records = data.records.map((record: any) => { 28 data.records = data.records.map((record: any) => {
29 if (record.host && record.partner) { 29 if (record.host && record.partner) {
30 return { ...record, kind: 'multiplayer' }; 30 return { ...record, kind: "multiplayer" };
31 } else { 31 } else {
32 return { ...record, kind: 'singleplayer' }; 32 return { ...record, kind: "singleplayer" };
33 } 33 }
34 }); 34 });
35 return data; 35 return data;