make broken connections more obvious by removing controls
This commit is contained in:
parent
d9e9c28976
commit
cd12ab7bde
1 changed files with 7 additions and 1 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Reference in a new issue