Fix banning phase showing after match completion (#2712)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Kalle 2026-01-11 15:25:52 +02:00 committed by GitHub
parent 036da571c7
commit 4a70d87f97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -313,6 +313,7 @@ function FancyStageBanner({
};
const inBanPhase =
!data.matchIsOver &&
data.match.roundMaps?.pickBan === "BAN_2" &&
data.mapList &&
data.mapList.filter((m) => m.bannedByTournamentTeamId).length < 2;

View File

@ -35,6 +35,12 @@ export function turnOf({
switch (maps.pickBan) {
case "BAN_2": {
if (
isSetOverByResults({ count: maps.count, results, countType: maps.type })
) {
return null;
}
// typically lower seed is the "bottom team" and they pick first
const [secondPicker, firstPicker] = teams;