disable offer during animation, don't set instance to null
This commit is contained in:
parent
58678e958e
commit
6da01f879d
@ -46,7 +46,6 @@ const addState = connect(
|
||||
function quit() {
|
||||
dispatch(actions.setNav('transition'));
|
||||
dispatch(actions.setGame(null));
|
||||
dispatch(actions.setInstance(null));
|
||||
}
|
||||
|
||||
function setChatShow(v) {
|
||||
|
||||
@ -81,7 +81,7 @@ function GameCtrlTopBtns(args) {
|
||||
? 'Offered'
|
||||
: drawState ? 'Draw' : 'Offer';
|
||||
const drawAction = drawState ? sendDraw : drawStateTrue;
|
||||
const drawBtn = <button class={drawClasses} disabled={finished || drawOffered} onClick={drawAction}>{drawText}</button>;
|
||||
const drawBtn = <button class={drawClasses} disabled={finished || animating || drawOffered} onClick={drawAction}>{drawText}</button>;
|
||||
|
||||
return (
|
||||
<div class="instance-ctrl-btns">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user