fix create room

Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2025-11-13 20:47:09 +01:00
padre 05ae0e88c4
commit e9156e6c72

Ver fichero

@@ -98,11 +98,11 @@ export default function Home() {
// Show lobby if no game state or game mode is waiting // Show lobby if no game state or game mode is waiting
if (!gameState || gameState.gameMode === 'waiting') { if (!gameState || gameState.gameMode === 'waiting') {
if (roomId && gameState) { if (roomId) {
return ( return (
<WaitingRoom <WaitingRoom
roomId={roomId} roomId={roomId}
players={gameState.players} players={gameState?.players || []}
currentPlayerId={currentPlayerId} currentPlayerId={currentPlayerId}
onReady={setPlayerReady} onReady={setPlayerReady}
onLeave={leaveRoom} onLeave={leaveRoom}