diff --git a/src/component/Room/Room.ts b/src/component/Room/Room.ts index ae65cb5..e7b5c66 100644 --- a/src/component/Room/Room.ts +++ b/src/component/Room/Room.ts @@ -89,8 +89,13 @@ export default class Room { data = [(connData.state ?? EGameState.Ready) + apiNum]; } } else { - target = []>this.conns.filter((filterConn) => filterConn === key); - data = [connData.state]; + if (state) { + target = []>this.conns.filter((filterConn) => filterConn === key); + data = [state]; + } else { + target = []>this.conns.filter((filterConn) => filterConn === key); + data = [connData.state]; + } } if (needData) { data.push(connData.answer);