diff --git a/src/components/Modal/Modal.tsx b/src/components/Modal/Modal.tsx index 671446e..a05530e 100644 --- a/src/components/Modal/Modal.tsx +++ b/src/components/Modal/Modal.tsx @@ -57,7 +57,7 @@ const Modal: FC = ({ isOpen, close, children }) => { alt="Noise" className="absolute inset-0 w-full h-full object-cover z-10 opacity-20" /> -
+
{children}
diff --git a/src/components/SetNameModal/SetNameModal.tsx b/src/components/SetNameModal/SetNameModal.tsx index 810f808..e67a7b8 100644 --- a/src/components/SetNameModal/SetNameModal.tsx +++ b/src/components/SetNameModal/SetNameModal.tsx @@ -25,6 +25,7 @@ const SetNameModal: FC = ({ bots, gameData, players, + region, setBots, setGameData, setPlayers, @@ -60,7 +61,9 @@ const SetNameModal: FC = ({ }; const isButtonDisabled = - (title === "Join Multiplayer" && !gameData.code) || !gameData.petName; + (title === "Join Multiplayer" && !gameData.code) || + !gameData.petName || + (title === "New Game" && !region); return (