Fixed the dropped ! for the boolean evaluation

This commit is contained in:
Brady 2022-03-30 15:19:08 -06:00
parent 658bfd1f23
commit 1e928af5db

@ -63,7 +63,7 @@ export function WireCuttingGame(props: IMinigameProps): React.ReactElement {
const [questions] = useState(generateQuestion(wires, difficulty)); const [questions] = useState(generateQuestion(wires, difficulty));
function checkWire(wireNum: number): boolean { 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 { function press(this: Document, event: KeyboardEvent): void {