diff --git a/apps/web/src/routes/kripke/components/formula-input.svelte b/apps/web/src/routes/kripke/components/formula-input.svelte index a4bd056..9960c6f 100644 --- a/apps/web/src/routes/kripke/components/formula-input.svelte +++ b/apps/web/src/routes/kripke/components/formula-input.svelte @@ -32,7 +32,7 @@ $effect(() => { {#if history.length > 0} - + {#each history as fml} {/each} @@ -41,6 +41,7 @@ $effect(() => { { async function check() { if (!canCheck || !formula) return; const valid = await checkImpl(formula); + formulaHistory.update((h) => + formula ? h.add(prettyPrint(formula, { symbols: unicodeSymbols })) : h, + ); moves.push({ type: "check", formulaStr, valid }); moves = [...moves]; formula = undefined;