From d58e1a454c3b47c66717a7d6945bdc01a54ff273 Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad <600878@stud.hvl.no> Date: Sat, 15 Apr 2023 23:06:01 +0200 Subject: [PATCH] Fixed input not encoding on load --- src/truth-table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/truth-table.tsx b/src/truth-table.tsx index 146ea4d..e5a23b4 100644 --- a/src/truth-table.tsx +++ b/src/truth-table.tsx @@ -98,7 +98,6 @@ const TruthTablePage: Component = () => { history.pushState(null, "", `?exp=${ encodeURIComponent(exp) }&simplify=${ simplifyEnabled() }& hide=${ hideValues().value }&sort=${ sortValues().value }&hideIntermediate=${ hideIntermediates() }`); - exp = replaceOperators(exp); getFetchResult(exp); } @@ -108,6 +107,7 @@ hide=${ hideValues().value }&sort=${ sortValues().value }&hideIntermediate=${ hi setFetchResult(null); if (exp && exp !== "") { + exp = replaceOperators(exp); setError(null); setIsLoaded(false);