Skip to content

Commit 3aa4db8

Browse files
committed
fixed some bug 🪲
1 parent 2aa3c90 commit 3aa4db8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/components/Pages/ComingSoon/ComingSoon.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ const ComingSoon = () => {
3636
};
3737

3838
useEffect(() => {
39+
const intervalRefValue = interval.current;
3940
startTimer();
40-
return () => clearInterval(interval.current);
41+
return () => clearInterval(intervalRefValue);
4142
})
4243

4344
return (

0 commit comments

Comments
 (0)