diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-10-22 13:59:12 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-22 12:59:12 +0300 |
| commit | 69aeb7889ac136a8e4fbe7de1330298e30345479 (patch) | |
| tree | 6b2cd2d420105dc7ffad3c3649df359f634cae77 /frontend/src/api/Maps.ts | |
| parent | feat/rankings: update wr for 3 maps (#279) (diff) | |
| download | lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.tar.gz lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.tar.bz2 lphub-69aeb7889ac136a8e4fbe7de1330298e30345479.zip | |
feat/frontend: switch to vite, update node to v22 (#281)
Diffstat (limited to 'frontend/src/api/Maps.ts')
| -rw-r--r-- | frontend/src/api/Maps.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/api/Maps.ts b/frontend/src/api/Maps.ts index aa967ce..8d29f84 100644 --- a/frontend/src/api/Maps.ts +++ b/frontend/src/api/Maps.ts | |||
| @@ -17,9 +17,9 @@ export const get_map_leaderboard = async (map_id: string, page: string): Promise | |||
| 17 | // map the kind of leaderboard | 17 | // map the kind of leaderboard |
| 18 | data.records = data.records.map((record: any) => { | 18 | data.records = data.records.map((record: any) => { |
| 19 | if (record.host && record.partner) { | 19 | if (record.host && record.partner) { |
| 20 | return { ...record, kind: 'multiplayer' }; | 20 | return { ...record, kind: "multiplayer" }; |
| 21 | } else { | 21 | } else { |
| 22 | return { ...record, kind: 'singleplayer' }; | 22 | return { ...record, kind: "singleplayer" }; |
| 23 | } | 23 | } |
| 24 | }); | 24 | }); |
| 25 | return data; | 25 | return data; |