From 0f2eba8733f11473d01f9b3ba16b5fa84a39456a Mon Sep 17 00:00:00 2001 From: David Granado Date: Wed, 2 Mar 2022 20:25:44 -0600 Subject: [PATCH] Switch unnecessary let to const --- ui/effects/use-interval.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);