diff options
| author | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-11-01 17:56:35 +0100 |
|---|---|---|
| committer | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-11-01 17:56:35 +0100 |
| commit | a6a5735e4869ac9835a0b2a1f7740448ecd63449 (patch) | |
| tree | 7f58458483f74d938adf9cae7d2b98e169401261 /frontend/src/pages | |
| parent | frontend: convert all native confirm and alerts to custom hooks (diff) | |
| download | lphub-a6a5735e4869ac9835a0b2a1f7740448ecd63449.tar.gz lphub-a6a5735e4869ac9835a0b2a1f7740448ecd63449.tar.bz2 lphub-a6a5735e4869ac9835a0b2a1f7740448ecd63449.zip | |
frontend: uploadrundialog.tsx
Diffstat (limited to 'frontend/src/pages')
| -rw-r--r-- | frontend/src/pages/Maplist.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/src/pages/Maplist.tsx b/frontend/src/pages/Maplist.tsx index a76c1f5..4c1c172 100644 --- a/frontend/src/pages/Maplist.tsx +++ b/frontend/src/pages/Maplist.tsx | |||
| @@ -53,7 +53,10 @@ const Maplist: React.FC = () => { | |||
| 53 | // location query params | 53 | // location query params |
| 54 | const queryParams = new URLSearchParams(location.search); | 54 | const queryParams = new URLSearchParams(location.search); |
| 55 | if (queryParams.get("chapter")) { | 55 | if (queryParams.get("chapter")) { |
| 56 | const cat = parseFloat(queryParams.get("chapter") || ""); | 56 | let cat = parseFloat(queryParams.get("chapter") || ""); |
| 57 | if (gameId == 2) { | ||
| 58 | cat += 10; | ||
| 59 | } | ||
| 57 | _fetch_chapters(cat.toString()); | 60 | _fetch_chapters(cat.toString()); |
| 58 | } | 61 | } |
| 59 | 62 | ||