diff --git a/app/components/GithubActionsScheduledJobs.tsx b/app/components/GithubActionsScheduledJobs.tsx index 36a05ce..e0a619c 100644 --- a/app/components/GithubActionsScheduledJobs.tsx +++ b/app/components/GithubActionsScheduledJobs.tsx @@ -14,11 +14,12 @@ function GithubActionsJob({ // Update the badges every 60 seconds by adding the date as a query parameter. const [src, setSrc] = useState(imageUrl); useEffect(() => { + setSrc(imageUrl + "?refresh=" + Date.now()); const interval = setInterval(() => { setSrc(imageUrl + "?refresh=" + Date.now()); }, 60000); return () => clearInterval(interval); - }); + }, []); return (