mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-28 06:23:09 -05:00
Fix banning phase showing after match completion (#2712)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
036da571c7
commit
4a70d87f97
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user