fix logic that determines whether games are startable when the game is first constructed

This commit is contained in:
AlecM33
2023-11-28 18:19:21 -05:00
parent b6e22b9b3d
commit 95d0cee35f
3 changed files with 8 additions and 7 deletions

View File

@@ -9,8 +9,7 @@ class Game {
hasDedicatedModerator,
originalModeratorId,
createTime,
timerParams = null,
isTestGame = false
timerParams = null
) {
this.accessCode = accessCode;
this.status = status;
@@ -27,9 +26,6 @@ class Game {
this.previousModeratorId = null;
this.createTime = createTime;
this.timerParams = timerParams;
this.isStartable = (this.gameSize === 1 && !this.hasDedicatedModerator)
|| (this.gameSize === 0 && this.hasDedicatedModerator)
|| isTestGame;
this.timeRemaining = null;
}
}