Fix player sidebar: move scoreboard update before early-return guard

This commit is contained in:
danny 2026-06-14 14:56:50 +02:00
parent ad5b69514c
commit 5d3c2bb26e

View file

@ -967,6 +967,9 @@ const App = (() => {
avEl.textContent=initials(me.name||name);
}
// Sidebar scoreboard — always update, even while waiting for a question
$('pScoreboard').innerHTML=sidebarScoreboard(players,pkey);
const hasQuestion=!!(me.question&&me.question.trim());
$('pQuestion').textContent=hasQuestion?me.question:'Warten auf den Spielleiter…';
// Lock answer area until host has set a question
@ -980,9 +983,6 @@ const App = (() => {
show('pAnswerArea',!me.answered);
show('pSubmitted',!!me.answered);
// Sidebar scoreboard
$('pScoreboard').innerHTML=sidebarScoreboard(players,pkey);
const box=$('pAnswers');
const resolved=!!state.roundOutcome;