diff --git a/src/components/game/GameModal.jsx b/src/components/game/GameModal.jsx index fa6dbe2..596b779 100644 --- a/src/components/game/GameModal.jsx +++ b/src/components/game/GameModal.jsx @@ -4,11 +4,15 @@ import Modal from "../../components/ui/Modal.jsx"; import closeIcon from "../../assets/img/icons/icon-cross.svg"; export default function GameModal() { - const { currentGameModal, setCurrentGameModal } = useGame(); + const { currentGameModal, setCurrentGameModal, remainingQuestionsAmount } = useGame(); if (!currentGameModal) return null; return ( - setCurrentGameModal(null)}> + setCurrentGameModal(null)} + unclosable={remainingQuestionsAmount < 1 ? "true" : "false"}>