select-account: mostrar WOW1/WOW2/WOW3 en vez de 15#1/15#2/15#3
El selector de cuentas de juego listaba el nombre interno (15#1). Ahora usa wowAccountLabel (mismo criterio que my-account/cabecera): «15#1» → «WOW1». La etiqueta se calcula en el Server Component (bnet.ts importa crypto, no vale en cliente) y se pasa al formulario. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import { useTranslations, useLocale } from 'next-intl'
|
||||
interface GameAccount {
|
||||
id: number
|
||||
username: string
|
||||
label: string // nombre visible: «15#1» → «WOW1»
|
||||
}
|
||||
|
||||
export function SelectAccountForm({ accounts }: { accounts: GameAccount[] }) {
|
||||
@@ -50,7 +51,7 @@ export function SelectAccountForm({ accounts }: { accounts: GameAccount[] }) {
|
||||
disabled={busy !== null}
|
||||
className="login-button"
|
||||
>
|
||||
{busy === a.id ? t('entering') : a.username}
|
||||
{busy === a.id ? t('entering') : a.label}
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user