From edc1ed545994a9122cc10e1b3416c2023bcc3ec6 Mon Sep 17 00:00:00 2001
From: liquidwater0 <32186774+liquidwater0@users.noreply.github.com>
Date: Thu, 3 Apr 2025 01:34:25 -0500
Subject: [PATCH] maybe fix build errors

---
 web/src/app/maps/[mapId]/page.tsx |  6 +++---
 web/src/app/maps/page.tsx         | 12 ++++++++----
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/web/src/app/maps/[mapId]/page.tsx b/web/src/app/maps/[mapId]/page.tsx
index 48e8bcc..36cbdbd 100644
--- a/web/src/app/maps/[mapId]/page.tsx
+++ b/web/src/app/maps/[mapId]/page.tsx
@@ -2,16 +2,16 @@ import Webpage from "@/app/_components/webpage";
 
 interface MapParams {
     params: {
-        mapid: string;
+        mapId: string;
     };
 }
 
 export default function Map({ params }: MapParams) {
-    const { mapid } = params;
+    const { mapId } = params;
 
     return (
         <Webpage>
-            <p>map { mapid }</p>
+            <p>map { mapId }</p>
         </Webpage>
     );
 }
\ No newline at end of file
diff --git a/web/src/app/maps/page.tsx b/web/src/app/maps/page.tsx
index 5729a36..3272077 100644
--- a/web/src/app/maps/page.tsx
+++ b/web/src/app/maps/page.tsx
@@ -1,12 +1,16 @@
 import Webpage from "@/app/_components/webpage";
 
 export default async function MapsPage() {
-    const ingameMaps = fetch("/api/maps?Page=1&Limit=10");
-
     try {
-        console.log(ingameMaps);
+        const response = await fetch("/api/maps?Page=1&Limit=10");
+        const json = await response.json();
+        console.log(json);
     } catch(error) {
-        console.log(error);
+        return (
+            <Webpage>
+                <h1>No Maps!</h1>
+            </Webpage>
+        )
     }
     
     return (