diff --git a/@kiva/kv-analytics/src/index.ts b/@kiva/kv-analytics/src/index.ts index 9e48a054..f085d525 100644 --- a/@kiva/kv-analytics/src/index.ts +++ b/@kiva/kv-analytics/src/index.ts @@ -63,10 +63,10 @@ async function waitOnLibraries() { resolve(false); }, 5000); - const intervalId = setInterval(() => { + interval = setInterval(() => { if (checkLibrariesLoaded()) { clearTimeout(timeout); - clearInterval(intervalId); + clearInterval(interval); resolve(true); } }, 100);