Skip to content

Commit

Permalink
Don't try to load an existing solution when clicking then Go button
Browse files Browse the repository at this point in the history
  • Loading branch information
Elscrux committed Nov 9, 2023
1 parent 297877a commit ce58623
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/components/solvers/ProgressHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,6 @@ export const ProgressHandler = <T extends {}>(
setClicked(true);
setFinished(false);

// Check if the problem was previously solved
let existingProblem = problemStates.find(
(state) => state.content == props.problemInput
);
if (existingProblem !== undefined) {
await loadSolution(existingProblem.solutionIds);
} else {
await startSolving();
}
}

async function startSolving() {
let newSolveRequest: SolveRequest<T> = {
...solveRequest,
requestContent: props.problemInput,
Expand Down

0 comments on commit ce58623

Please sign in to comment.