Skip to content

Commit

Permalink
Login now shows "beta" when playing on beta (#4973)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeTappert authored Dec 7, 2024
1 parent 757fe1a commit 22f4e74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui/login-form-ui-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ export default class LoginFormUiHandler extends FormModalUiHandler {
}

override getModalTitle(_config?: ModalConfig): string {
return i18next.t("menu:login");
let key = "menu:login";
if (import.meta.env.VITE_SERVER_URL === "https://apibeta.pokerogue.net") {
key = "menu:loginBeta";
}
return i18next.t(key);
}

override getWidth(_config?: ModalConfig): number {
Expand Down

0 comments on commit 22f4e74

Please sign in to comment.