From f5d7c28ae85169f9758760cf695162d05c2b0b9e Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 29 May 2024 06:48:46 +0200 Subject: [PATCH] SetInterval may be overridden by nodejs types... ensure to use window --- src/stores/pairlistConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/pairlistConfig.ts b/src/stores/pairlistConfig.ts index e405dcb62..27b581372 100644 --- a/src/stores/pairlistConfig.ts +++ b/src/stores/pairlistConfig.ts @@ -151,7 +151,7 @@ export const usePairlistConfigStore = defineStore( const { job_id: jobId } = await botStore.activeBot.evaluatePairlist(payload); console.log('jobId', jobId); - intervalId.value = setInterval(async () => { + intervalId.value = window.setInterval(async () => { const res = await botStore.activeBot.getBackgroundJobStatus(jobId); if (!res.running) { clearInterval(intervalId.value);