fix: zweimal Messwert Durchschnitt wird angezeigt , durch else if gelöst

This commit is contained in:
ISA
2025-02-20 15:24:36 +01:00
parent a98f8297bc
commit 9da7952a87
2 changed files with 3 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ const LoopMeasurementChart = () => {
}
// Falls `g` vorhanden ist (DIA1/DIA2), wird es gezeichnet
if (
else if (
selectedMode !== "DIA1" &&
processedData.some((entry) => entry.g !== undefined)
) {
@@ -90,8 +90,7 @@ const LoopMeasurementChart = () => {
backgroundColor: "rgba(75, 75, 192, 0.2)",
fill: true,
});
}
if (
} else if (
selectedMode !== "DIA2" &&
processedData.some((entry) => entry.g !== undefined)
) {