From 5f96f004e001fd59b09683f6690bd83bf0c3b8bb Mon Sep 17 00:00:00 2001
From: Wolfboy248 <georgejvindkarlsen@gmail.com>
Date: Wed, 30 Oct 2024 09:39:05 +0100
Subject: frontend: maplist chapter param fix

---
 frontend/src/pages/Maplist.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'frontend/src/pages/Maplist.tsx')

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 = () => {
 
   useEffect(() => {
   	const queryParams = new URLSearchParams(location.search);
-    if (gameChapters != undefined && queryParams.get("chapter") == "") {
+    if (gameChapters != undefined && !queryParams.get("chapter")) {
       _fetch_chapters(gameChapters!.chapters[0].id.toString());
     }
   }, [gameChapters])
-- 
cgit v1.2.3

