diff options
Diffstat (limited to 'frontend/src/pages')
| -rw-r--r-- | frontend/src/pages/Maps.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/frontend/src/pages/Maps.tsx b/frontend/src/pages/Maps.tsx index 13ee4d9..bc939cf 100644 --- a/frontend/src/pages/Maps.tsx +++ b/frontend/src/pages/Maps.tsx | |||
| @@ -37,8 +37,6 @@ const Maps: React.FC<MapProps> = ({ token, isModerator }) => { | |||
| 37 | 37 | ||
| 38 | const _fetch_map_leaderboards = async () => { | 38 | const _fetch_map_leaderboards = async () => { |
| 39 | const mapLeaderboards = await API.get_map_leaderboard(mapID); | 39 | const mapLeaderboards = await API.get_map_leaderboard(mapID); |
| 40 | console.log("lbs:") | ||
| 41 | console.log(mapLeaderboards); | ||
| 42 | setMapLeaderboardData(mapLeaderboards); | 40 | setMapLeaderboardData(mapLeaderboards); |
| 43 | }; | 41 | }; |
| 44 | 42 | ||
| @@ -51,7 +49,7 @@ const Maps: React.FC<MapProps> = ({ token, isModerator }) => { | |||
| 51 | _fetch_map_summary(); | 49 | _fetch_map_summary(); |
| 52 | _fetch_map_leaderboards(); | 50 | _fetch_map_leaderboards(); |
| 53 | _fetch_map_discussions(); | 51 | _fetch_map_discussions(); |
| 54 | }, []); | 52 | }, [mapID]); |
| 55 | 53 | ||
| 56 | if (!mapSummaryData) { | 54 | if (!mapSummaryData) { |
| 57 | // loading placeholder | 55 | // loading placeholder |