From 9d1f59721e31c0b29409ce6fa9ee0a31f8719509 Mon Sep 17 00:00:00 2001 From: Gareth Williams Date: Thu, 3 Oct 2024 11:22:07 +0100 Subject: [PATCH] Reset error notification --- frontend/src/App.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index fd44be0..e79eee8 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -42,6 +42,7 @@ function App() { const [error, setError] = useState(''); function runDebug() { + setError("") setDebugRunning(true); RunDebug().then((result) => { @@ -56,11 +57,16 @@ function App() { } function runFixes() { + setError(""); setFixesRunning(true); RunCommonFixes().then((result) => { setFixesRunning(false); console.log(result); + toast({ + description: "Fixed common issues", + className: "flex flex-col w-[300px] ml-auto border-green-500", + }) }).catch((err) => { setFixesRunning(false); console.error(err);