diff --git a/client/src/components/buttons/ScoreBoardButton.tsx b/client/src/components/buttons/ScoreBoardButton.tsx index 0c39616..5585360 100644 --- a/client/src/components/buttons/ScoreBoardButton.tsx +++ b/client/src/components/buttons/ScoreBoardButton.tsx @@ -9,7 +9,7 @@ export default function ScoreboardButton() { const [isModalOpen, setIsModalOpen] = useState(false); const [scores , setScores] = useState([]); const modalOverlayRef = useRef(null); - const {roomCode} = useRoom(); + const {roomCode,roomInfo} = useRoom(); const openModal = async () => { try { @@ -33,12 +33,16 @@ export default function ScoreboardButton() { }; return ( <> + {roomInfo.isStarted ? ( + ) : ( + <> + )} {isModalOpen ? (