Skip to content

Commit

Permalink
SetInterval may be overridden by nodejs types...
Browse files Browse the repository at this point in the history
ensure to use window
  • Loading branch information
xmatthias committed May 29, 2024
1 parent 9572b90 commit f5d7c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/pairlistConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f5d7c28

Please sign in to comment.