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

View File

@@ -6,5 +6,5 @@
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen). 2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
*/ */
const webVersion = "1.6.70"; const webVersion = "1.6.71";
export default webVersion; export default webVersion;