Always use bracket specific settings

I left the tournament settings there for backwards compability reasons. But now it seems they are causing a problem because the bracket progression selector is using bracket settings. So there was a bug where 3rd place match is disabled, but still showed up (because using different settings)
This commit is contained in:
Kalle
2025-02-23 12:15:25 +02:00
parent 6164a62b93
commit 9013833707

View File

@@ -570,10 +570,7 @@ export class Tournament {
}
return {
consolationFinal:
selectedSettings?.thirdPlaceMatch ??
this.ctx.settings.thirdPlaceMatch ??
true,
consolationFinal: selectedSettings?.thirdPlaceMatch ?? true,
};
}
case "double_elimination": {
@@ -584,7 +581,6 @@ export class Tournament {
case "round_robin": {
const teamsPerGroup =
selectedSettings?.teamsPerGroup ??
this.ctx.settings.teamsPerGroup ??
TOURNAMENT.DEFAULT_TEAM_COUNT_PER_RR_GROUP;
return {
@@ -602,7 +598,7 @@ export class Tournament {
groupCount: selectedSettings.groupCount,
roundCount: selectedSettings.roundCount,
}
: this.ctx.settings.swiss,
: undefined,
};
}
default: {