diff --git a/src/components/player/score/MapButtons.tsx b/src/components/player/score/MapButtons.tsx index ec5c6c0..ee5dded 100644 --- a/src/components/player/score/MapButtons.tsx +++ b/src/components/player/score/MapButtons.tsx @@ -30,6 +30,9 @@ export default function MapButtons({ leaderboard }: MapButtonsProps) { return; } const json = await beatSaberMap.json(); + if (json.maps[hash] !== null || json.maps[hash] !== undefined) { + return; + } setMapId(json.maps[hash].id); }, [hash]); @@ -40,55 +43,53 @@ export default function MapButtons({ leaderboard }: MapButtonsProps) { return (
{mapId && ( - <> -
- - - + + + + - - - -

Click to open the map page

-
-
+ + + +
+ +

Click to open the map page

+
+
- -
-
- - - - - - - -

Click to view the song on YouTube

-
-
-
- + +
)} +
+ + + + + + + +

Click to view the song on YouTube

+
+
+
); }