diff --git a/src/components/score/score-buttons.tsx b/src/components/score/score-buttons.tsx
index 449a818..80fed2e 100644
--- a/src/components/score/score-buttons.tsx
+++ b/src/components/score/score-buttons.tsx
@@ -74,7 +74,7 @@ export default function ScoreButtons({
- {isLeaderboardExpanded && setIsLeaderboardExpanded && (
+ {isLeaderboardExpanded != undefined && setIsLeaderboardExpanded != undefined && (