X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fhelpers%2FRound.js;h=c7bb811a9c581f80cea1224db8d7d1c35e8d87d8;hb=537b998e8059c56e3a20ee2a89d42c3bbfbb80b8;hp=f662defaa4d5f23bc476127b55a458ab6fc4a04e;hpb=3e970c52e6a46cf9db4f69c5bec9102da53c0744;p=alttp.git diff --git a/resources/js/helpers/Round.js b/resources/js/helpers/Round.js index f662def..c7bb811 100644 --- a/resources/js/helpers/Round.js +++ b/resources/js/helpers/Round.js @@ -5,6 +5,7 @@ export const isComplete = (tournament, round) => { if (!tournament || !tournament.participants) return false; if (!round || !round.results) return false; const runners = Tournament.getRunners(tournament); + if (!runners.length) return false; for (let i = 0; i < runners.length; ++i) { const result = Participant.findResult(runners[i], round); if (!result || !result.has_finished) return false;