feat: Update banner key assignment in TimedEventDisplay setup method
This commit is contained in:
parent
95a02a96a7
commit
e80b4fe122
|
@ -91,7 +91,7 @@ export class TimedEventDisplay extends Phaser.GameObjects.Container {
|
||||||
setup() {
|
setup() {
|
||||||
const lang = i18next.resolvedLanguage;
|
const lang = i18next.resolvedLanguage;
|
||||||
if (this.event && this.event.bannerKey) {
|
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 (lang && this.event.availableLangs && this.event.availableLangs.length > 0) {
|
||||||
if (this.event.availableLangs.includes(lang)) {
|
if (this.event.availableLangs.includes(lang)) {
|
||||||
key += "-"+lang;
|
key += "-"+lang;
|
||||||
|
|
Loading…
Reference in New Issue