From 8f90af6cf27da8291664ee37360e10c6b380e528 Mon Sep 17 00:00:00 2001 From: lambda Date: Tue, 27 Oct 2026 17:32:18 +0300 Subject: [PATCH] fix: remove annoiying messages --- src/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index 282a888..0448ba7 100644 --- a/src/main.js +++ b/src/main.js @@ -225,7 +225,7 @@ function powerTolerance(target) { } function updateDeviation(metricEl, targetEl, warnEl, actual, target, tolerance, unit) { - targetEl.textContent = target != null ? `цель ${target} ${unit}` : "—"; + targetEl.textContent = target != null ? `${target} ${unit}` : "—"; if (actual == null || target == null) { metricEl.classList.remove("metric--off"); warnEl.textContent = ""; @@ -234,10 +234,8 @@ function updateDeviation(metricEl, targetEl, warnEl, actual, target, tolerance, const diff = actual - target; if (Math.abs(diff) > tolerance) { metricEl.classList.add("metric--off"); - warnEl.textContent = diff > 0 ? "выше цели" : "ниже цели"; } else { metricEl.classList.remove("metric--off"); - warnEl.textContent = ""; } }