From 16cca1587288b4c5fc76f29381c35e15ec41908a Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Sun, 19 Apr 2020 17:38:03 +1000 Subject: [PATCH] Fix equal oparator --- src/routes/Game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/Game.js b/src/routes/Game.js index ccd55b4..d91d63f 100644 --- a/src/routes/Game.js +++ b/src/routes/Game.js @@ -159,7 +159,7 @@ function Game() { if (mapDrawActions) { peer.connection.send({ id: "mapDraw", data: mapDrawActions }); } - if (mapDrawActionIndex != mapDrawActions.length - 1) { + if (mapDrawActionIndex !== mapDrawActions.length - 1) { peer.connection.send({ id: "mapDrawIndex", data: mapDrawActionIndex }); } }