Skip to content

Commit 0441979

Browse files
authored
explicitly check for spectra+ if user has more than 1 sponsor (#19)
* feat: explicitly check for spectra+ if user has more than 1 sponsor * fix: check for isSupporter, haha I forgot...
1 parent 967f90b commit 0441979

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/model/Match.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ export class Match {
9595
this.tools.watermarkInfo.customTextEnabled =
9696
this.tools.watermarkInfo.customTextEnabled && !!this.orgIsSupporter;
9797

98+
if (
99+
this.tools.roundWinBox.type == "sponsors" &&
100+
this.tools.roundWinBox.sponsors.length > 1 &&
101+
!this.orgIsSupporter
102+
) {
103+
this.tools.roundWinBox.sponsors = [this.tools.roundWinBox.sponsors[0]];
104+
this.tools.roundWinBox.sponsors[0].roundCeremony = ["all"];
105+
this.tools.roundWinBox.sponsors[0].wonTeam = "all";
106+
}
107+
98108
if (process.env.USE_BACKEND === "true") {
99109
this.organizationId = data.organizationId || "";
100110
this.updateNameOverridesAndPlayercams().then(() => {});

0 commit comments

Comments
 (0)