mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-03 00:27:30 -05:00
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user