From 89560a61bc6e41d86acaea596762eda2da38fe50 Mon Sep 17 00:00:00 2001
From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>
Date: Mon, 9 Sep 2024 19:29:42 +0300
Subject: refactor: upload run form, lots of random shit

---
 frontend/src/pages/Maplist.tsx | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

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

diff --git a/frontend/src/pages/Maplist.tsx b/frontend/src/pages/Maplist.tsx
index 3bc5f74..5d0c852 100644
--- a/frontend/src/pages/Maplist.tsx
+++ b/frontend/src/pages/Maplist.tsx
@@ -73,14 +73,9 @@ const Maplist: React.FC = () => {
       setNumChapters(games_chapters.chapters.length);
     }
 
-    const _fetch_maps = async () => {
-      const maps = await API.get_games_maps(gameId.toString());
-      setLoad(true);
-    }
-
     _fetch_game();
     _fetch_game_chapters();
-    _fetch_maps();
+    setLoad(true);
   }, []);
 
   useEffect(() => {
@@ -97,7 +92,7 @@ const Maplist: React.FC = () => {
         <Link to="/games">
           <button className="nav-button" style={{ borderRadius: "20px" }}>
             <i className="triangle"></i>
-            <span>Games list</span>
+            <span>Games List</span>
           </button>
         </Link>
       </section>
@@ -162,7 +157,7 @@ const Maplist: React.FC = () => {
                       </div>
                     </div>
                     <div className="difficulty-bar">
-                      <span>Difficulty:</span>
+                      {/* <span>Difficulty:</span> */}
                       <div className={map.difficulty == 0 ? "one" : map.difficulty == 1 ? "two" : map.difficulty == 2 ? "three" : map.difficulty == 3 ? "four" : map.difficulty == 4 ? "five" : "one"}>
                         <div className="difficulty-point"></div>
                         <div className="difficulty-point"></div>
-- 
cgit v1.2.3

