Browse Source

safety string replacement

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

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

@ -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));
}
}


Loading…
Cancel
Save