Skip to content

Commit 4810eba

Browse files
committed
Check if round end display should be enabled at all
1 parent abe5aa3 commit 4810eba

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/model/ToolsData.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@ export class ToolsData {
1313
name: "",
1414
logoUrl: "",
1515
backdropUrl: "",
16+
enabled: false,
1617
};
1718

1819
public constructor(init?: Partial<ToolsData>) {
1920
Object.assign(this, init);
21+
if (
22+
this.tournamentInfo.backdropUrl != "" ||
23+
this.tournamentInfo.logoUrl != "" ||
24+
this.tournamentInfo.name != ""
25+
) {
26+
this.tournamentInfo.enabled = true;
27+
}
2028
}
2129
}
2230

@@ -36,6 +44,7 @@ export type ITournamentInfo = {
3644
name: string;
3745
logoUrl: string;
3846
backdropUrl: string;
47+
enabled: boolean;
3948
};
4049

4150
type BaseMapPoolInfo = {

0 commit comments

Comments
 (0)