From 8aa5be543578b9a24d34a0e3ba41fd5fbc174625 Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad <600878@stud.hvl.no> Date: Sun, 22 Jan 2023 00:08:20 +0100 Subject: [PATCH] Fixed fetch url --- 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 569efee..1698999 100644 --- a/src/truth-table.tsx +++ b/src/truth-table.tsx @@ -83,7 +83,7 @@ const TruthTablePage: Component = () => { if (exp !== "") { setError(null); setIsLoaded(false); - fetch(`https://api.martials.no/simplify-truths/simplify/table?exp=${ encodeURIComponent(exp) }&simplify=${ simplifyEnabled() } + fetch(`https://api.martials.no/simplify-truths/do/simplify/table?exp=${ encodeURIComponent(exp) }&simplify=${ simplifyEnabled() } &hide=${ hideValues().value }&sort=${ sortValues().value }`) .then(res => res.json()) .then(res => setFetchResult(res))