diff options
Diffstat (limited to 'frontend/src/pages')
| -rw-r--r-- | frontend/src/pages/Maplist.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/pages/Maplist.tsx b/frontend/src/pages/Maplist.tsx index 31b7b2e..e3d7aab 100644 --- a/frontend/src/pages/Maplist.tsx +++ b/frontend/src/pages/Maplist.tsx | |||
| @@ -80,7 +80,7 @@ const Maplist: React.FC = () => { | |||
| 80 | 80 | ||
| 81 | useEffect(() => { | 81 | useEffect(() => { |
| 82 | const queryParams = new URLSearchParams(location.search); | 82 | const queryParams = new URLSearchParams(location.search); |
| 83 | if (gameChapters != undefined && queryParams.get("chapter") == "") { | 83 | if (gameChapters != undefined && !queryParams.get("chapter")) { |
| 84 | _fetch_chapters(gameChapters!.chapters[0].id.toString()); | 84 | _fetch_chapters(gameChapters!.chapters[0].id.toString()); |
| 85 | } | 85 | } |
| 86 | }, [gameChapters]) | 86 | }, [gameChapters]) |