aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorWolfboy248 <georgejvindkarlsen@gmail.com>2024-10-30 09:39:05 +0100
committerWolfboy248 <georgejvindkarlsen@gmail.com>2024-10-30 09:39:05 +0100
commit5f96f004e001fd59b09683f6690bd83bf0c3b8bb (patch)
tree7fd9aeecaf3f8098dd85e07f217bffaf08eaba3e /frontend
parentfrontend: maplist chapter param fix (diff)
downloadlphub-5f96f004e001fd59b09683f6690bd83bf0c3b8bb.tar.gz
lphub-5f96f004e001fd59b09683f6690bd83bf0c3b8bb.tar.bz2
lphub-5f96f004e001fd59b09683f6690bd83bf0c3b8bb.zip
frontend: maplist chapter param fix
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/pages/Maplist.tsx2
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])