fix 1 warning
This commit is contained in:
parent
e18fad25a8
commit
b07dff18ab
|
|
@ -158,9 +158,7 @@ export function ActionScreen () {
|
|||
}
|
||||
}, [readyState])
|
||||
|
||||
useEffect(() => {
|
||||
gameContext.isVip.current = false
|
||||
}, []);
|
||||
gameContext.isVip.current = false
|
||||
|
||||
return (
|
||||
<div key={updateScreen} className={s["game-container"]}>
|
||||
|
|
@ -224,7 +222,7 @@ export function ActionScreen () {
|
|||
))}
|
||||
</div>
|
||||
)}
|
||||
{(actionState == "waiting-for-players" && gameContext.isVip.current == true) && (
|
||||
{(actionState == "waiting-for-players" && gameContext.isVip.current) && (
|
||||
<button disabled={players.length < 3} onClick={() => {
|
||||
sendMessage(ser(createPacket("vip.startGame", {})))
|
||||
}}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user