From b0c4891c4b2687e7a08f05e779c84847a0f4f46c Mon Sep 17 00:00:00 2001 From: Desmond Kyeremeh Date: Tue, 20 Jul 2021 22:44:27 +0000 Subject: showignition logic --- modern/src/DevicesList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src') diff --git a/modern/src/DevicesList.js b/modern/src/DevicesList.js index 3ffd421e..aa856306 100644 --- a/modern/src/DevicesList.js +++ b/modern/src/DevicesList.js @@ -83,7 +83,7 @@ const DeviceRow = ({ data, index, style }) => { const { items } = data; const item = items[index]; const position = useSelector((state) => state.positions.items[item.id]); - const showIgnition = true;// position?.attributes.hasOwnProperty('ignition') && position.attributes.ignition + const showIgnition = position?.attributes.hasOwnProperty('ignition') && position.attributes.ignition return (
-- cgit v1.2.3