make broken connections more obvious by removing controls

This commit is contained in:
Vinzenz Schroeter 2024-05-02 19:07:46 +02:00 • committed by RobbersDaughter
commit cd12ab7bde

View file

@ -57,7 +57,7 @@ export default function PlayerInfo({player}: { player: string }) {
sendMessage('');
}, [readyState, shouldSendMessage]);
if (!lastJsonMessage)
if (!lastJsonMessage || readyState !== ReadyState.OPEN)
return <></>;
return <Column className="PlayerInfo">