Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-30 17:31:38 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-30 17:31:38 -0700
commit9304d937fc4dd793dbfba13be30b0073d1f76597 (patch)
tree6b1436f7db775ad2e19ffbcc832428c973781c98 /src/modules/gameboard.js
parentd393934679290ab4e16aa0b4a73408273eb26596 (diff)
Fix cancel firing arc placement bug
Diffstat (limited to 'src/modules/gameboard.js')
-rw-r--r--src/modules/gameboard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js
index b7ef148..d4592fc 100644
--- a/src/modules/gameboard.js
+++ b/src/modules/gameboard.js
@@ -222,7 +222,7 @@ export function start(el) {
const toPlace = placing.pop(),
occupant = getCellOccupant(cell);
- if (toPlace && occupant && toPlace == occupant) {
+ if (toPlace && occupant && toPlace === occupant) {
const { number, allegiance } = toPlace.dataset,
selector = `[data-allegiance="${allegiance}"][data-number="${number}"]`;