Reorganize convertMatch
This commit is contained in:
parent
54e17ea494
commit
21e6a858c6
|
|
@ -106,7 +106,9 @@ function convertGroup(apiGroup) {
|
||||||
|
|
||||||
function convertMatch(apiMatch, allowUndecided) {
|
function convertMatch(apiMatch, allowUndecided) {
|
||||||
const result = {
|
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,
|
winnerTeamId: apiMatch.winner === null ? null : apiMatch.winner.id,
|
||||||
position: apiMatch.position + 1
|
position: apiMatch.position + 1
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue