diff --git a/components/modules/Kue705FO.jsx b/components/modules/Kue705FO.jsx index e91a051..8326d64 100644 --- a/components/modules/Kue705FO.jsx +++ b/components/modules/Kue705FO.jsx @@ -68,9 +68,15 @@ function Kue705FO({ if (button === "Schleife") { setActiveButton("Schleife"); setloopTitleText("Schleifenwiderstand [kOhm]"); + setLoopDisplayValue(schleifenwiderstand); // Setze den Wert auf schleifenwiderstand } else if (button === "TDR") { setActiveButton("TDR"); setloopTitleText("Entfernung [Km]"); + setLoopDisplayValue( + tdrLocation && tdrLocation[slotIndex] !== undefined + ? tdrLocation[slotIndex] + : "0" + ); // Setze den Wert auf tdrLocation oder "0" als Fallback } };