fix planning broadcast

sync_v2
Razmig Sarkissian 5 months ago
parent 30ec5034cd
commit 8f494ba164
  1. 4
      tournaments/templates/tournaments/broadcast/broadcasted_planning.html

@ -223,8 +223,8 @@
matches.forEach(match => { matches.forEach(match => {
if (match && match.court) { if (match && match.court) {
const courtNum = this.getCourtNumber(match.court_index); const courtNum = this.getCourtNumber(match.court_index);
if (courtNum > 0 && courtNum <= this.courtCount) { if (courtNum >= 0 && courtNum < this.courtCount) {
courtMatches[courtNum - 1] = match; courtMatches[courtNum] = match;
} }
} }
}); });

Loading…
Cancel
Save