From 9050cf05a695f45637a11fbf1e7d15969cf69e88 Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 8 Nov 2024 08:33:27 +0100 Subject: [PATCH] Isolationwswert in isoDisplay statt Schleifenwert --- components/modules/Kue705FO.jsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/components/modules/Kue705FO.jsx b/components/modules/Kue705FO.jsx index 48d0e3f..997c32c 100644 --- a/components/modules/Kue705FO.jsx +++ b/components/modules/Kue705FO.jsx @@ -40,9 +40,7 @@ function Kue705FO({ const [isoGreaterThan200, setIsoGreaterThan200] = useState(">200 MOhm"); const [loading, setLoading] = useState(false); - const [currentDisplayValue, setCurrentDisplayValue] = useState( - schleifenwiderstand || "0" - ); + const [isoDisplayValue, setIsoDisplayValue] = useState(isolationswert); const [showModal, setShowModal] = useState(false); const [showChartModal, setShowChartModal] = useState(false); const [chartData, setChartData] = useState(null); @@ -355,7 +353,7 @@ function Kue705FO({ // Funktion zum Blinken des Textes oder Icons const setBlinkingText = (text) => { intervalId = setInterval(() => { - setCurrentDisplayValue((prevValue) => + setIsoDisplayValue((prevValue) => prevValue === text ? ( - {currentDisplayValue} + {isoDisplayValue} {kuePSTmMinus96V?.[slotIndex] !== 1 &&