aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-19 23:26:44 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-19 23:26:44 -0600
commit7bf059a2bb5423fe85bcd59938acd4a40671f14b (patch)
tree1942b67dd95a09452311616e43327900337f7417 /modern
parent8bc38f714a4cfea4869058978479ebf39f6b7d1e (diff)
downloadetbsa-traccar-web-7bf059a2bb5423fe85bcd59938acd4a40671f14b.tar.gz
etbsa-traccar-web-7bf059a2bb5423fe85bcd59938acd4a40671f14b.tar.bz2
etbsa-traccar-web-7bf059a2bb5423fe85bcd59938acd4a40671f14b.zip
Added === true check to ignition icon
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 b98956c..899d969 100644
--- a/modern/src/DevicesList.js
+++ b/modern/src/DevicesList.js
@@ -92,7 +92,7 @@ const DeviceRow = ({ data, index, style }) => {
const { items } = data;
const item = items[index];
const position = useSelector(getPosition(item.id));
- const showIgnition = position?.attributes.hasOwnProperty('ignition') && position.attributes.ignition;
+ const showIgnition = position?.attributes.hasOwnProperty('ignition') && position.attributes.ignition === true;
const statusColor = () => {
if (position && position.speed >= 2) {