From cea6022a6e8331cce5f905ce5c02f0273f30e603 Mon Sep 17 00:00:00 2001 From: Paul Sommer Date: Fri, 10 Apr 2026 07:37:07 +0200 Subject: [PATCH] fix: rename roundCeremonie to roundCeremony --- .../endround-banner.component.ts | 18 +++++++++--------- src/app/services/Types.ts | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/components/combat/endround-banner/endround-banner.component.ts b/src/app/components/combat/endround-banner/endround-banner.component.ts index d3e153d..c90e38a 100644 --- a/src/app/components/combat/endround-banner/endround-banner.component.ts +++ b/src/app/components/combat/endround-banner/endround-banner.component.ts @@ -87,7 +87,7 @@ export class EndroundBannerComponent { private calculateSponsor(): IRoundWinBoxSponsors { const initialSponsor: IRoundWinBoxSponsors = { wonTeam: "all", - roundCeremonie: ["all"], + roundCeremony: ["all"], iconUrl: "", backdropUrl: "", }; @@ -101,25 +101,25 @@ export class EndroundBannerComponent { const sponsor: IRoundWinBoxSponsors = this.roundWinBox().sponsors[0]; for (const spons of this.roundWinBox().sponsors) { - if (spons.roundCeremonie) { + if (spons.roundCeremony) { if ( spons.wonTeam == "all" || (spons.wonTeam == "left" && teamwon == 0) || (spons.wonTeam == "right" && teamwon == 1) ) { if ( - spons.roundCeremonie.includes("all") || - (spons.roundCeremonie.includes("normal") && + spons.roundCeremony.includes("all") || + (spons.roundCeremony.includes("normal") && roundWonType == TranslateKeys.Endround_RoundWin) || - (spons.roundCeremonie.includes("ace") && + (spons.roundCeremony.includes("ace") && roundWonType == TranslateKeys.Endround_RoundAce) || - (spons.roundCeremonie.includes("clutch") && + (spons.roundCeremony.includes("clutch") && roundWonType == TranslateKeys.Endround_RoundClutch) || - (spons.roundCeremonie.includes("teamAce") && + (spons.roundCeremony.includes("teamAce") && roundWonType == TranslateKeys.Endround_RoundTeamAce) || - (spons.roundCeremonie.includes("flawless") && + (spons.roundCeremony.includes("flawless") && roundWonType == TranslateKeys.Endround_RoundFlawless) || - (spons.roundCeremonie.includes("thrifty") && + (spons.roundCeremony.includes("thrifty") && roundWonType == TranslateKeys.Endround_RoundThrifty) ) { return spons; diff --git a/src/app/services/Types.ts b/src/app/services/Types.ts index fec0859..2e8c1b2 100644 --- a/src/app/services/Types.ts +++ b/src/app/services/Types.ts @@ -166,7 +166,7 @@ export interface IRoundWinBox { export interface IRoundWinBoxSponsors { wonTeam: "all" | "left" | "right"; - roundCeremonie: ("all" | "normal" | "ace" | "clutch" | "teamAce" | "flawless" | "thrifty")[]; + roundCeremony: ("all" | "normal" | "ace" | "clutch" | "teamAce" | "flawless" | "thrifty")[]; iconUrl: string; backdropUrl: string; }