mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 15:56:19 -05:00
Fix multiple starting bracket formats incorrectly saying waiting for teams from a previous bracket
This commit is contained in:
parent
ae02a4efc5
commit
234a5e7275
|
|
@ -275,6 +275,11 @@ export abstract class Bracket {
|
|||
return;
|
||||
}
|
||||
|
||||
/** Returns true if this bracket is a starting bracket (i.e., teams in it start their tournament from this bracket). Note: there can be more than one starting bracket. */
|
||||
get isStartingBracket() {
|
||||
return !this.sources || this.sources.length === 0;
|
||||
}
|
||||
|
||||
protected standingsWithoutNonParticipants(standings: Standing[]): Standing[] {
|
||||
return standings.map((standing) => {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ export default function TournamentBracketsPage() {
|
|||
{!bracket.canBeStarted ? (
|
||||
<div className="tournament-bracket__mini-alert">
|
||||
⚠️{" "}
|
||||
{bracketIdx === 0
|
||||
{bracket.isStartingBracket
|
||||
? "Tournament start time is in the future"
|
||||
: bracket.startTime && bracket.startTime > new Date()
|
||||
? "Bracket start time is in the future"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user