Reorganize convertMatch

This commit is contained in:
Daniel Schädler 2023-09-15 15:15:42 +02:00
parent 54e17ea494
commit 21e6a858c6
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -106,7 +106,9 @@ function convertGroup(apiGroup) {
function convertMatch(apiMatch, allowUndecided) {
const result = {
id: apiMatch.id, state: apiMatch.state, allowUndecided: allowUndecided,
id: apiMatch.id,
state: apiMatch.state,
allowUndecided: allowUndecided,
winnerTeamId: apiMatch.winner === null ? null : apiMatch.winner.id,
position: apiMatch.position + 1
};