diff --git a/index.html b/index.html index a31f25a..82ff00e 100644 --- a/index.html +++ b/index.html @@ -1125,6 +1125,8 @@ const App = (() => { wrap.innerHTML='

Erst Spieler beitreten lassen.

'; updateImposterCount(); return; } + // Remove the placeholder text if it's still in the DOM + wrap.querySelectorAll('p.empty').forEach(el=>el.remove()); const existing=new Map([...wrap.querySelectorAll('[data-imp]')].map(el=>[el.dataset.imp,el])); const seen=new Set(); players.forEach(p=>{ @@ -1234,7 +1236,8 @@ const App = (() => { const resolved=!!state.roundOutcome; // Reveal buttons: only before reveal all show('hRevealNextBtn', false); // replaced by clickable cards - show('hRevealAllBtn', !resolved && !state.votingOpen); + const allFullyRevealed = revealCount >= players.length && players.length > 0; + show('hRevealAllBtn', !resolved && !state.votingOpen && !allFullyRevealed); show('hOpenVotingBtn', anyRevealed && !state.votingOpen && !resolved); show('hResolveBtn', anyRevealed && state.votingOpen && !resolved);