From 30c8f00c27fe4127e831e77caaf5bc6780cd2ad2 Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 13 Mar 2024 23:20:13 +0100 Subject: [PATCH] fix land --- .../templates/tournaments/broadcasted_summons.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tournaments/templates/tournaments/broadcasted_summons.html b/tournaments/templates/tournaments/broadcasted_summons.html index fee03bf..2035ae0 100644 --- a/tournaments/templates/tournaments/broadcasted_summons.html +++ b/tournaments/templates/tournaments/broadcasted_summons.html @@ -24,7 +24,11 @@ this.paginatedMatches.forEach(group => { const firstHalf = group.slice(0, pageSize / 2); const secondHalf = group.slice(pageSize / 2); - splitGroups.push([firstHalf, secondHalf]); + if (secondHalf.length > 0) { + splitGroups.push([firstHalf, secondHalf]); + } else { + splitGroups.push([firstHalf]); + } }); this.paginatedMatches = splitGroups; @@ -52,8 +56,8 @@