This commit is contained in:
Dragon Fire
2021-01-16 17:23:30 -05:00
parent 5f114cbb81
commit aef7601b88
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ module.exports = class MinesweeperCommand extends Command {
const flag = Boolean(coordPicked[1]);
if (flag) {
if (flagged.includes(`${x - 1},${y - 1}`)) {
flagged = removeFromArray(flagged, `${x - 1},${y - 1}`);
removeFromArray(flagged, `${x - 1},${y - 1}`);
} else {
flagged.push(`${x - 1},${y - 1}`);
}