vbox bits check

This commit is contained in:
Mashy 2019-11-19 12:08:52 +10:00
parent 604a604c01
commit f2add9a836

View File

@ -257,7 +257,7 @@ class Vbox extends preact.Component {
class='vbox-btn' class='vbox-btn'
onMouseOver={e => hoverInfo(e, 'refill')} onMouseOver={e => hoverInfo(e, 'refill')}
disabled={vbox.bits < 2 disabled={vbox.bits < 2
|| tutorial && tutorial < 7 && instance.time_control === 'Practice' && instance.rounds.length === 1 || (tutorial && tutorial < 7 && instance.time_control === 'Practice' && instance.rounds.length === 1)
} }
onClick={e => e.stopPropagation()} onClick={e => e.stopPropagation()}
onMouseDown={() => sendVboxDiscard()}> onMouseDown={() => sendVboxDiscard()}>