feat: Update banner key assignment in TimedEventDisplay setup method

This commit is contained in:
Frederico Santos 2024-09-01 21:16:20 +01:00
parent 95a02a96a7
commit e80b4fe122
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ export class TimedEventDisplay extends Phaser.GameObjects.Container {
setup() {
const lang = i18next.resolvedLanguage;
if (this.event && this.event.bannerKey) {
const key = this.event.bannerKey;
let key = this.event.bannerKey;
if (lang && this.event.availableLangs && this.event.availableLangs.length > 0) {
if (this.event.availableLangs.includes(lang)) {
key += "-"+lang;