Logik für Farbe abhängig von Status + Invertierung:

Anzeige ist rot wenn Status=1 ist. Die Farbe ist nicht abhängig von der Invertierung.
Status	Invertierung	Anzeige
1                1	            🔴 rot
1	             0	            🔴 rot
0	             1	            grün
0	             0              grün
This commit is contained in:
ISA
2025-04-03 11:04:49 +02:00
parent 2f631e80be
commit 75759791cd
7 changed files with 129 additions and 10 deletions

View File

@@ -33,6 +33,7 @@ export const fetchDigitaleEingaenge = async () => {
status: status === 1,
counter: win.win_counter?.[index] || 0,
flutter: win.win_flutter?.[index] || 0,
invertierung: win.win_de_invert?.[index] === 1,
})
);