Update CountDown

This commit is contained in:
stereobooster
2019-06-06 22:57:49 +02:00
committed by GitHub
parent 7e2177b0f2
commit 751ad87d30

View File

@ -1047,7 +1047,7 @@ function CountDown({ hours = 0, minutes = 0, seconds = 0 }) {
React.useEffect(() => {
let timerID = setInterval(() => tick(), 1000);
return () => clearInterval(timerID);
});
}, [tick]);
return (
<div>