From 33b847d3e5858a0e3bbda039fa2272f8e4f2e3d5 Mon Sep 17 00:00:00 2001 From: zain_arif Date: Wed, 29 Apr 2026 10:44:16 +0700 Subject: [PATCH] fix(svg): equate logic for all airdryer condition --- src/components/Global/MqttConnection.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Global/MqttConnection.jsx b/src/components/Global/MqttConnection.jsx index 7da8781..4a2b61d 100644 --- a/src/components/Global/MqttConnection.jsx +++ b/src/components/Global/MqttConnection.jsx @@ -103,14 +103,12 @@ const handleBoolean = (svg, el, value) => { const els2 = svg.querySelectorAll(`#${id2}`); if (!els1 || !els2) return; - // balik arah khusus untuk airdryerA - if (dryerIds.slice(0, 2).includes(el.id)) value = !value; els1.forEach(el => { - el.style.fill = value ? 'rgb(255, 204, 63)' : 'rgb(216,216,216)'; + el.style.fill = value ? 'rgb(216,216,216)' : 'rgb(255, 204, 63)'; }); els2.forEach(el => { - el.style.fill = value ? 'rgb(216,216,216)' : 'rgb(255, 204, 63)'; + el.style.fill = value ? 'rgb(255, 204, 63)' : 'rgb(216,216,216)'; }); }; -- 2.49.1