@@ -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}
|
||||||
|
|||||||
Referencia en una nueva incidencia
Block a user