diff --git a/Website/modules/Footer.tsx b/Website/modules/Footer.tsx index da9299a..b230400 100644 --- a/Website/modules/Footer.tsx +++ b/Website/modules/Footer.tsx @@ -10,7 +10,7 @@ export default function Footer({connectedToBackend, apiUri} : {connectedToBacken const [AllJobsCount, setAllJobsCount] = React.useState(0); const [RunningJobsCount, setRunningJobsCount] = React.useState(0); const [StandbyJobsCount, setStandbyJobsCount] = React.useState(0); - const [countUpdateInterval, setcountUpdateInterval] = React.useState(); + const [countUpdateInterval, setCountUpdateInterval] = React.useState(); function UpdateBackendState(){ Job.GetMonitoringJobs(apiUri).then((jobs) => setMonitoringJobsCount(jobs.length)); @@ -22,19 +22,19 @@ export default function Footer({connectedToBackend, apiUri} : {connectedToBacken useEffect(() => { if(connectedToBackend){ UpdateBackendState(); - setcountUpdateInterval(setInterval(() => { + setCountUpdateInterval(setInterval(() => { UpdateBackendState(); }, 2000)); }else{ clearInterval(countUpdateInterval); - setcountUpdateInterval(undefined); + setCountUpdateInterval(undefined); } }, [connectedToBackend]); return (