Skip to content

Commit

Permalink
Reset error notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaz492 committed Oct 3, 2024
1 parent c9940a6 commit 9d1f597
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function App() {
const [error, setError] = useState('');

function runDebug() {
setError("")
setDebugRunning(true);

RunDebug().then((result) => {
Expand All @@ -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);
Expand Down

0 comments on commit 9d1f597

Please sign in to comment.