fix: zweimal Messwert Durchschnitt wird angezeigt , durch else if gelöst
This commit is contained in:
@@ -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)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user