mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 19:13:49 +01:00
Merge pull request #3300 from bradygroharing/fix/WireCuttingFix
Fixed the dropped ! for the boolean evaluation
This commit is contained in:
commit
d58a30a3f1
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user