|
|
@ -199,6 +199,9 @@ public class EditMatchCard extends VerticalLayout { |
|
|
|
Optional<Game> game = chessComService.getGame(textField.getValue().replace("/live/game/", "/game/live/"), match); // TODO: handle this when Optional is empty! |
|
|
|
game.ifPresent(value -> match.getGames().add(value)); |
|
|
|
} |
|
|
|
if (match.getGames().size() > 0) { |
|
|
|
match.setState(PLAYED); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private List<TextField> getAllTextfields() { |
|
|
|