Skip to content

Commit

Permalink
useless const
Browse files Browse the repository at this point in the history
  • Loading branch information
dlopezalvas committed Jul 24, 2024
1 parent bd54a6b commit 720ad2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/challengeView/SceneButtons/Execute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export const ExecuteButton = ({ challenge }: ExecuteButtonProps) => {

const handleExcecute = async () => {
await scene.restartScene(challenge.sceneDescriptor)
const interpreter = interpreterFactory.createInterpreter()
executeUntilEnd(interpreter)
executeUntilEnd(interpreterFactory.createInterpreter())
}

const executeUntilEnd = (interpreter: Interpreter) => {
Expand Down

0 comments on commit 720ad2b

Please sign in to comment.