diff --git a/ui/effects/use-interval.js b/ui/effects/use-interval.js index bffe7c18e..e0bf92b24 100644 --- a/ui/effects/use-interval.js +++ b/ui/effects/use-interval.js @@ -12,7 +12,7 @@ export default function useInterval(callback, delay) { savedCallback.current(); }; if (delay !== null) { - let id = setInterval(tick, delay); + const id = setInterval(tick, delay); return () => clearInterval(id); } }, [delay]);