|
|
@ -179,7 +179,7 @@ public class EditMatchCard extends VerticalLayout { |
|
|
|
|
|
|
|
private void addGamesToMatchFromFieldValues() { |
|
|
|
for (TextField textField : getAllTextfields()) { |
|
|
|
Optional<Game> game = chessComService.getGame(textField.getValue(), match); // TODO: handle this when Optional is empty! |
|
|
|
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)); |
|
|
|
} |
|
|
|
} |
|
|
|