From 9cd22365ec836be8e5cbf4ed58dae20ab31ac6e3 Mon Sep 17 00:00:00 2001 From: Resistencia Dev Date: Fri, 5 Dec 2025 22:55:12 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20Corregir=20iconos=20de=20l=C3=ADder=20y?= =?UTF-8?q?=20equipo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix: Usar currentLeaderId en lugar de player.isLeader (evita múltiples L) - Fix: Mostrar estrella verde también en VOTING_TEAM - Ahora solo aparece un icono L (líder actual) - Estrellas verdes visibles para equipo propuesto --- client/src/components/GameBoard.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/client/src/components/GameBoard.tsx b/client/src/components/GameBoard.tsx index 48e924f..4da6aae 100644 --- a/client/src/components/GameBoard.tsx +++ b/client/src/components/GameBoard.tsx @@ -603,7 +603,7 @@ export default function GameBoard({ gameState, currentPlayerId, actions }: GameB
{/* Icono de Líder */} - {player.isLeader && ( + {gameState.currentLeaderId === player.id && (
L
)} {/* Icono de Miembro del Equipo de Misión */} - {gameState.proposedTeam.includes(player.id) && (gameState.phase === GamePhase.MISSION || gameState.phase === 'mission_reveal' as any || gameState.phase === 'mission_result' as any) && ( -
- ⭐ -
- )} + {gameState.proposedTeam.includes(player.id) && ( + gameState.phase === GamePhase.VOTING_TEAM || + gameState.phase === GamePhase.MISSION || + gameState.phase === 'mission_reveal' as any || + gameState.phase === 'mission_result' as any + ) && ( +
+ ⭐ +
+ )}
{/* Nombre */}