From 1e928af5db99687c69eee42b7c9b654bb6a12e57 Mon Sep 17 00:00:00 2001 From: Brady Date: Wed, 30 Mar 2022 15:19:08 -0600 Subject: [PATCH] Fixed the dropped ! for the boolean evaluation --- src/Infiltration/ui/WireCuttingGame.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infiltration/ui/WireCuttingGame.tsx b/src/Infiltration/ui/WireCuttingGame.tsx index efd1c2eb8..454653976 100644 --- a/src/Infiltration/ui/WireCuttingGame.tsx +++ b/src/Infiltration/ui/WireCuttingGame.tsx @@ -63,7 +63,7 @@ export function WireCuttingGame(props: IMinigameProps): React.ReactElement { const [questions] = useState(generateQuestion(wires, difficulty)); function checkWire(wireNum: number): boolean { - return questions.some((q) => q.shouldCut(wires[wireNum - 1], wireNum - 1)); + return !questions.some((q) => q.shouldCut(wires[wireNum - 1], wireNum - 1)); } function press(this: Document, event: KeyboardEvent): void {