X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fhelpers%2FTournament.js;h=8f2239f1695c2a87515d5cf876784b1ef4b769f7;hb=3e970c52e6a46cf9db4f69c5bec9102da53c0744;hp=fac1681f2bbc94170f41715f9a69238019e0ed9a;hpb=601947fac408c56023badfaafc9d47cb7e57a0f7;p=alttp.git diff --git a/resources/js/helpers/Tournament.js b/resources/js/helpers/Tournament.js index fac1681..8f2239f 100644 --- a/resources/js/helpers/Tournament.js +++ b/resources/js/helpers/Tournament.js @@ -38,8 +38,8 @@ export const getScoreTable = tournament => { runners.forEach(participant => { running[participant.id] = 0; }); - const data = tournament.rounds.reverse().map(round => { - const entry = { number: `#${round.number}` }; + const data = [...tournament.rounds, {}].reverse().map(round => { + const entry = { number: round.number ? `#${round.number}` : '' }; runners.forEach(participant => { const result = Participant.findResult(participant, round); if (result && result.score) {