fix: ensure watchlist interval is only created once

This commit is contained in:
root
2026-02-27 15:02:33 +00:00
parent 3b4997213b
commit a2ff8e547f
+8 -6
View File
@@ -411,14 +411,16 @@ document.addEventListener('DOMContentLoaded', () => {
displayWatchlist();
}
window.watchlistTabLoaded = true;
}
// Start 30-second auto-refresh interval for watchlist
if (typeof displayWatchlist === 'function') {
watchlistRefreshInterval = setInterval(() => {
displayWatchlist();
}, 30000);
// Start 30-second auto-refresh interval for watchlist (only once)
if (typeof displayWatchlist === 'function') {
watchlistRefreshInterval = setInterval(() => {
displayWatchlist();
}, 30000);
}
}
}
}
}
}, 100);
};