summaryrefslogtreecommitdiff
path: root/sw-ui-kt/src/main/kotlin/org
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-03-23 21:42:30 +0100
committerJoffrey Bion <joffrey.bion@booking.com>2020-03-23 21:42:30 +0100
commit0723ddd1d494e95925719252cb7402d6f01e3179 (patch)
treee4882b0e4b7ebc73630f42d3726517006c8b6079 /sw-ui-kt/src/main/kotlin/org
parentAdd whether game can be started in LobbyDTO (diff)
downloadseven-wonders-0723ddd1d494e95925719252cb7402d6f01e3179.tar.gz
seven-wonders-0723ddd1d494e95925719252cb7402d6f01e3179.tar.bz2
seven-wonders-0723ddd1d494e95925719252cb7402d6f01e3179.zip
Remove hardcoded min players in Lobby component
Diffstat (limited to 'sw-ui-kt/src/main/kotlin/org')
-rw-r--r--sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt
index dab3c87f..de9d1454 100644
--- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt
+++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt
@@ -41,7 +41,7 @@ class LobbyPresenter(props: LobbyProps) : RComponent<LobbyProps, RState>(props)
large = true,
intent = Intent.PRIMARY,
icon = "play",
- disabled = props.players.size < 3,
+ disabled = !currentGame.canBeStarted,
onClick = { props.startGame() }
)
}
bgstack15