quick fix for buttons on decision

This commit is contained in:
Maik 2026-06-13 23:09:58 +02:00
parent a0d4ec6fc9
commit 7958f47d3b

View File

@ -161,6 +161,10 @@ async function startRound(){
setStreak(d.current_streak);
btnHint.disabled=false;
btnNext.disabled=true;
btnHit.textContent='Hit';
btnStand.textContent='Stand';
btnDouble.textContent='Double';
btnSplit.textContent='';
enableActions(true);
resetButtonColors();
btnSplit.textContent=d.can_split?'Split':'';
@ -189,6 +193,7 @@ async function checkDecision(action,btn){
feedback.textContent=d.feedback;
feedback.style.color=d.correct?'green':'red';
markButton(btn,d.correct);
actionBtns.forEach(function(b){if(b!==btn)b.textContent=''});
enableActions(false);
btnNext.disabled=false;
setStreak(d.stats.current_streak);