Tournament format
Format
@@ -866,6 +900,7 @@ function TournamentFormatSelector() {
setChecked={setThirdPlaceMatch}
name="thirdPlaceMatch"
id="thirdPlaceMatch"
+ tiny
/>
) : null}
diff --git a/app/features/tournament-bracket/core/Tournament.ts b/app/features/tournament-bracket/core/Tournament.ts
index 1e38c67ba..9458a5448 100644
--- a/app/features/tournament-bracket/core/Tournament.ts
+++ b/app/features/tournament-bracket/core/Tournament.ts
@@ -266,7 +266,10 @@ export class Tournament {
}
get ranked() {
- return Boolean(currentSeason(this.ctx.startTime));
+ const seasonIsActive = Boolean(currentSeason(this.ctx.startTime));
+ if (!seasonIsActive) return false;
+
+ return this.ctx.settings.isRanked ?? true;
}
get logoSrc() {
diff --git a/app/features/tournament-bracket/routes/to.$id.brackets.tsx b/app/features/tournament-bracket/routes/to.$id.brackets.tsx
index 74f816860..6977eb5ed 100644
--- a/app/features/tournament-bracket/routes/to.$id.brackets.tsx
+++ b/app/features/tournament-bracket/routes/to.$id.brackets.tsx
@@ -140,7 +140,7 @@ export const action: ActionFunction = async ({ params, request }) => {
teams: tournament.ctx.teams,
finalStandings: _finalStandings,
results,
- calculateSeasonalStats: typeof season === "number",
+ calculateSeasonalStats: tournament.ranked,
queryCurrentTeamRating: (identifier) =>
queryCurrentTeamRating({ identifier, season: season! }).rating,
queryCurrentUserRating: (userId) =>