aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/index.js b/src/server/index.js
index a5aa97f..004c989 100644
--- a/src/server/index.js
+++ b/src/server/index.js
@@ -89,7 +89,7 @@ io.on('connection', (socket) => {
const score = getScore(winner, data.scoreX, data.scoreO, data.board)
io.to(room).emit('update-client-data', {
board: data.board,
- turn: score.winner ? data.turn : (data.turn === 0 ? 1 : 0),
+ turn: (data.turn === 0 ? 1 : 0),
score: score
});