Merge pull request #3300 from bradygroharing/fix/WireCuttingFix

Fixed the dropped ! for the boolean evaluation
This commit is contained in:
hydroflame
2022-03-30 19:48:27 -04:00
committed by GitHub

View File

@ -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 {