diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-10-22 16:09:09 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-22 15:09:09 +0300 |
| commit | 4dd315f21f2c204be71ef1859aa2412233420517 (patch) | |
| tree | 95831f985e9cef3a5385f51eafb443121dd069b4 /frontend/src/pages | |
| parent | fix/frontend: use API url based on environment (#282) (diff) | |
| download | lphub-4dd315f21f2c204be71ef1859aa2412233420517.tar.gz lphub-4dd315f21f2c204be71ef1859aa2412233420517.tar.bz2 lphub-4dd315f21f2c204be71ef1859aa2412233420517.zip | |
feat/frontend: tidy up records view on mobile (#283)
Diffstat (limited to 'frontend/src/pages')
| -rw-r--r-- | frontend/src/pages/Maplist.tsx | 1 | ||||
| -rw-r--r-- | frontend/src/pages/Rankings.tsx | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/frontend/src/pages/Maplist.tsx b/frontend/src/pages/Maplist.tsx index 76f9a52..bda24cd 100644 --- a/frontend/src/pages/Maplist.tsx +++ b/frontend/src/pages/Maplist.tsx | |||
| @@ -63,7 +63,6 @@ const Maplist: React.FC = () => { | |||
| 63 | const _fetch_game = async () => { | 63 | const _fetch_game = async () => { |
| 64 | const games = await API.get_games(); | 64 | const games = await API.get_games(); |
| 65 | const foundGame = games.find((game) => game.id === gameId); | 65 | const foundGame = games.find((game) => game.id === gameId); |
| 66 | // console.log(foundGame) | ||
| 67 | if (foundGame) { | 66 | if (foundGame) { |
| 68 | setGame(foundGame); | 67 | setGame(foundGame); |
| 69 | setLoad(false); | 68 | setLoad(false); |
diff --git a/frontend/src/pages/Rankings.tsx b/frontend/src/pages/Rankings.tsx index 12dcab4..4a96e26 100644 --- a/frontend/src/pages/Rankings.tsx +++ b/frontend/src/pages/Rankings.tsx | |||
| @@ -47,7 +47,6 @@ const Rankings: React.FC = () => { | |||
| 47 | const rankings = await API.get_unofficial_rankings(); | 47 | const rankings = await API.get_unofficial_rankings(); |
| 48 | setLeaderboardData(rankings); | 48 | setLeaderboardData(rankings); |
| 49 | if (currentLeaderboardType == RankingCategories.rankings_singleplayer) { | 49 | if (currentLeaderboardType == RankingCategories.rankings_singleplayer) { |
| 50 | // console.log(_sort_rankings_steam(unofficialRanking.rankings_singleplayer)) | ||
| 51 | setCurrentLeaderboard(rankings.rankings_singleplayer) | 50 | setCurrentLeaderboard(rankings.rankings_singleplayer) |
| 52 | } else if (currentLeaderboardType == RankingCategories.rankings_multiplayer) { | 51 | } else if (currentLeaderboardType == RankingCategories.rankings_multiplayer) { |
| 53 | setCurrentLeaderboard(rankings.rankings_multiplayer) | 52 | setCurrentLeaderboard(rankings.rankings_multiplayer) |