From 8bd7cba6f5ce56bcccda1459cdd953b3add799d6 Mon Sep 17 00:00:00 2001
From: Anton Tananaev <anton@traccar.org>
Date: Sat, 24 Feb 2024 16:02:48 -0800
Subject: Fix lint and issues

---
 modern/src/reports/EventReportPage.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'modern/src/reports/EventReportPage.jsx')

diff --git a/modern/src/reports/EventReportPage.jsx b/modern/src/reports/EventReportPage.jsx
index 10b539ab..5ffc8ac3 100644
--- a/modern/src/reports/EventReportPage.jsx
+++ b/modern/src/reports/EventReportPage.jsx
@@ -204,7 +204,7 @@ const EventReportPage = () => {
               {!loading ? items.map((item) => (
                 <TableRow key={item.id}>
                   <TableCell className={classes.columnAction} padding="none">
-                    {item.positionId ? selectedItem === item ? (
+                    {(item.positionId && (selectedItem === item ? (
                       <IconButton size="small" onClick={() => setSelectedItem(null)}>
                         <GpsFixedIcon fontSize="small" />
                       </IconButton>
@@ -212,7 +212,7 @@ const EventReportPage = () => {
                       <IconButton size="small" onClick={() => setSelectedItem(item)}>
                         <LocationSearchingIcon fontSize="small" />
                       </IconButton>
-                    ) : ''}
+                    ))) || ''}
                   </TableCell>
                   {columns.map((key) => (
                     <TableCell key={key}>
-- 
cgit v1.2.3

