Skip to content

Commit 210c990

Browse files
committed
prevent error before schem is ready
1 parent eed5607 commit 210c990

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

circuitSolver/modules/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ function SchematicVal(props) {
372372
<${schematicValidator} name="vout connected" key="vout" ready=${props.schematicReadiness["vout"]} />
373373
<${schematicValidator} name="vin or iin connected" key="vin" ready=${props.schematicReadiness["vin"]} />
374374
<${schematicValidator} name="gnd connected" key="gnd" ready=${props.schematicReadiness["gnd"]} />
375-
<${schematicValidator} name="solvable" key="solvable" ready=${props.schematicReadiness["solvable"]} />
375+
<!-- <${schematicValidator} name="solvable" key="solvable" ready=${props.schematicReadiness["solvable"]} /> -->
376376
</div>
377377
`;
378378
}
@@ -1115,7 +1115,7 @@ class Game extends React.Component {
11151115
{
11161116
history: this.state.history.concat([current]),
11171117
},
1118-
this.calculateTF
1118+
() => {if (this.state.calculationDone) this.calculateTF()}
11191119
);
11201120
}
11211121

@@ -1147,7 +1147,7 @@ class Game extends React.Component {
11471147
{
11481148
history: this.state.history.concat([current]),
11491149
},
1150-
this.calculateTF
1150+
() => {if (this.state.calculationDone) this.calculateTF()}
11511151
);
11521152
}
11531153

circuitSolver/toDo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
- Add some self testing!
22
- let algebrite do the parameter substitution so it can calculate abs with less issue
3+
- re-add solvable flag
34

45

56

0 commit comments

Comments
 (0)