diff --git a/src/components/player/score/MapButtons.tsx b/src/components/player/score/MapButtons.tsx index ee5dded..37ab5b0 100644 --- a/src/components/player/score/MapButtons.tsx +++ b/src/components/player/score/MapButtons.tsx @@ -30,9 +30,10 @@ export default function MapButtons({ leaderboard }: MapButtonsProps) { return; } const json = await beatSaberMap.json(); - if (json.maps[hash] !== null || json.maps[hash] !== undefined) { + if (json.maps[hash] == null || json.maps[hash] == undefined) { return; } + console.log(json); setMapId(json.maps[hash].id); }, [hash]); @@ -41,55 +42,57 @@ export default function MapButtons({ leaderboard }: MapButtonsProps) { }, [getMapId]); 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

-
-
-
); }