diff options
author | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-20 22:44:27 +0000 |
---|---|---|
committer | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-20 22:44:27 +0000 |
commit | b0c4891c4b2687e7a08f05e779c84847a0f4f46c (patch) | |
tree | d011e72f9609444f71eced195a6394c1d481e80b /modern/src/DevicesList.js | |
parent | f22c36eb475aa515c3991caff98605d67f1f18e0 (diff) | |
download | trackermap-web-b0c4891c4b2687e7a08f05e779c84847a0f4f46c.tar.gz trackermap-web-b0c4891c4b2687e7a08f05e779c84847a0f4f46c.tar.bz2 trackermap-web-b0c4891c4b2687e7a08f05e779c84847a0f4f46c.zip |
showignition logic
Diffstat (limited to 'modern/src/DevicesList.js')
-rw-r--r-- | modern/src/DevicesList.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 ( <div style={style}> |