fix: updateTitleStats not checking the namespace of battlesWon

This commit is contained in:
flx-sta 2024-09-18 16:31:00 -07:00
parent c9fcec8eaa
commit a0ec2cc71c
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ export default class TitleUiHandler extends OptionSelectUiHandler {
.then(request => request.json())
.then(stats => {
this.playerCountLabel.setText(`${stats.playerCount} ${i18next.t("menu:playersOnline")}`);
if (this.splashMessage === "battlesWon") {
if (this.splashMessage === "splashMessages:battlesWon") {
this.splashMessageText.setText(i18next.t(this.splashMessage, { count: stats.battlesWon }));
}
})