Merge branch 'main' of github.com:leanprover-community/lean4game

This commit is contained in:
Jon Eugster
2023-03-07 11:09:22 +01:00
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ export const Goal = React.memo((props: GoalProps) => {
// if (props.goal.isInserted) cn += 'b--inserted '
// if (props.goal.isRemoved) cn += 'b--removed '
const hints = <Hints hints={goal.hints} />
const hints = <Hints hints={goal.hints} key={goal.mvarId} />
const objectHyps = hyps.filter(hyp => !hyp.isAssumption)
const assumptionHyps = hyps.filter(hyp => hyp.isAssumption)
const {commandLineMode} = React.useContext(InputModeContext)
+1 -2
View File
@@ -33,9 +33,8 @@ export function Main(props: {world: string, level: number}) {
if (ec.events.changedCursorLocation.current &&
ec.events.changedCursorLocation.current.uri === params.uri) {
dispatch(codeEdited)
dispatch(levelCompleted({world: props.world, level: props.level}))
}
dispatch(levelCompleted({world: props.world, level: props.level}))
},
[]
);