diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-30 00:57:58 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-30 00:57:58 +0300 |
| commit | 41b1dbdf6febc44b162f583eb614fad3ed8891d0 (patch) | |
| tree | 6aaddd34b14b677124cd806e59fdc0829d7c5d50 /frontend/src/pages/Maps.tsx | |
| parent | frontend: HOW is h2 bigger than h1 i really hate our css (diff) | |
| download | lphub-41b1dbdf6febc44b162f583eb614fad3ed8891d0.tar.gz lphub-41b1dbdf6febc44b162f583eb614fad3ed8891d0.tar.bz2 lphub-41b1dbdf6febc44b162f583eb614fad3ed8891d0.zip | |
frontend: fix switching maps but not updating
Diffstat (limited to 'frontend/src/pages/Maps.tsx')
| -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 |