diff --git a/server/src/js/components/latest-levels-auto-refresh.js b/server/src/js/components/latest-levels-auto-refresh.js index 45be911e4..1442854ee 100644 --- a/server/src/js/components/latest-levels-auto-refresh.js +++ b/server/src/js/components/latest-levels-auto-refresh.js @@ -115,9 +115,9 @@ class LatestLevelsAutoRefresh { if (currentItem) { const currentTime = currentItem.querySelector('[data-item-time]') const currentValue = currentItem.querySelector('[data-item-value]') - const currentStatus = currentItem.getAttribute('data-item-status') - if (fetchedStatus === currentStatus) { + // if isSuspendedOrOffline + if (fetchedStatus === 'false') { if (fetchedValue?.textContent !== currentValue?.textContent) { clearInterval(this.timeAgoInterval) diff --git a/server/views/partials/latest-levels.html b/server/views/partials/latest-levels.html index 94dff5aa8..a221f04bd 100644 --- a/server/views/partials/latest-levels.html +++ b/server/views/partials/latest-levels.html @@ -3,7 +3,7 @@