mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-24 20:16:41 -05:00
Fix banning phase showing after match completion (#2712)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user