Browse Source

name changes

master
GAM 4 years ago
parent
commit
9e30248d58
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/main/java/app/views/match/components/EditMatchCard.java

+ 3
- 0
src/main/java/app/views/match/components/EditMatchCard.java View File

@ -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() {


Loading…
Cancel
Save