From 2c92ef38df01f41e5b77211fbe74c21c8d920633 Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Mon, 17 Jun 2024 23:12:44 +0200 Subject: [PATCH] Fixed hideIntermediateSteps --- src/pages/truth-table.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/truth-table.tsx b/src/pages/truth-table.tsx index 5f94789..bd0767c 100644 --- a/src/pages/truth-table.tsx +++ b/src/pages/truth-table.tsx @@ -36,7 +36,7 @@ const TruthTablePage: Component = () => { let simplifyDefault = searchParams.simplify === undefined || searchParams.simplify === "true", inputContent = !!searchParams.exp, - hideIntermediate = searchParams.hideIntermediate === "true" + hideIntermediate = searchParams.hideIntermediateSteps === "true" const [simplifyEnabled, setSimplifyEnabled] = createSignal(simplifyDefault) const [fetchResult, setFetchResult] = createSignal(null) @@ -75,7 +75,7 @@ const TruthTablePage: Component = () => { simplify: simplifyEnabled(), hide: hideValues().value, sort: sortValues().value, - hideIntermediate: hideIntermediates() + hideIntermediateSteps: hideIntermediates() }) void getFetchResult(exp) @@ -94,7 +94,7 @@ const TruthTablePage: Component = () => { const response = await fetch(`${fetchUrls[useLocalhost() ? 0 : 1]}${encodeURIComponent(exp)}? simplify=${simplifyEnabled()}&hide=${hideValues().value}&sort=${sortValues().value}&caseSensitive=false& -hideIntermediate=${hideIntermediates()}`) +hideIntermediateSteps=${hideIntermediates()}`) const body = await response.json() if (!response.ok) {