aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-20 22:44:27 +0000
committerDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-20 22:44:27 +0000
commitb0c4891c4b2687e7a08f05e779c84847a0f4f46c (patch)
treed011e72f9609444f71eced195a6394c1d481e80b /modern
parentf22c36eb475aa515c3991caff98605d67f1f18e0 (diff)
downloadtrackermap-web-b0c4891c4b2687e7a08f05e779c84847a0f4f46c.tar.gz
trackermap-web-b0c4891c4b2687e7a08f05e779c84847a0f4f46c.tar.bz2
trackermap-web-b0c4891c4b2687e7a08f05e779c84847a0f4f46c.zip
showignition logic
Diffstat (limited to 'modern')
-rw-r--r--modern/src/DevicesList.js2
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}>