fix: start freshness ticker after first data load (#172)

This commit is contained in:
openhands 2026-02-22 23:01:42 +00:00
parent 1b55ae8ac8
commit a8f62e2357

View file

@ -509,8 +509,8 @@ async function fetchStats() {
} }
} }
onMounted(() => { onMounted(async () => {
fetchStats(); await fetchStats();
fetchEthPrice(); fetchEthPrice();
refreshInterval = window.setInterval(fetchStats, 30000); // Refresh every 30 seconds refreshInterval = window.setInterval(fetchStats, 30000); // Refresh every 30 seconds
ethPriceInterval = window.setInterval(fetchEthPrice, ETH_PRICE_CACHE_MS); ethPriceInterval = window.setInterval(fetchEthPrice, ETH_PRICE_CACHE_MS);