Fix player sidebar: move scoreboard update before early-return guard
This commit is contained in:
parent
ad5b69514c
commit
5d3c2bb26e
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue