Skip to content

Commit bb39ca7

Browse files
committed
fix bug that was causing isActive to return false
1 parent 8cc654d commit bb39ca7

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/client/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class _ClientImpl {
132132
isActive = false;
133133
}
134134
if (
135-
!this.game.flow.canMakeMove(state.G, state.ctx, {
135+
!this.game.flow.canPlayerMakeMove(state.G, state.ctx, {
136136
playerID: this.playerID,
137137
})
138138
) {

src/core/flow.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ export function Flow({
124124

125125
optimisticUpdate,
126126

127+
canPlayerMakeMove,
128+
127129
canMakeMove: (G, ctx, opts) => {
128130
// Disallow moves once the game is over.
129131
if (ctx.gameover !== undefined) return false;

0 commit comments

Comments
 (0)