mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-05 20:56:13 -05:00
Tweak deriveCurrentRound
This commit is contained in:
parent
8191612ad6
commit
95b7a23537
|
|
@ -44,10 +44,10 @@ export function getLiveTournamentStreams(): SidebarStream[] {
|
|||
return streams;
|
||||
}
|
||||
|
||||
// xxx: not always reporting furthest round
|
||||
function deriveCurrentRound(tournament: Tournament): string {
|
||||
for (const bracket of tournament.brackets) {
|
||||
for (const bracket of tournament.brackets.toReversed()) {
|
||||
if (bracket.preview) continue;
|
||||
if (bracket.isUnderground) continue;
|
||||
|
||||
for (const match of bracket.data.match) {
|
||||
const isActive =
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user