diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-04-19 13:12:57 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-04-19 13:12:57 +0530 |
commit | 2691e78cd4d5486581656a490b9fb5386e68a5d9 (patch) | |
tree | 422e38c7932f25c20a828619dd694b14f08cc2c6 /modern | |
parent | 006ee184700c3fb04267950e52a39c697500e66c (diff) | |
download | trackermap-web-2691e78cd4d5486581656a490b9fb5386e68a5d9.tar.gz trackermap-web-2691e78cd4d5486581656a490b9fb5386e68a5d9.tar.bz2 trackermap-web-2691e78cd4d5486581656a490b9fb5386e68a5d9.zip |
More code formatting
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/App.js | 1 | ||||
-rw-r--r-- | modern/src/CachingController.js | 2 | ||||
-rw-r--r-- | modern/src/reports/EventReportPage.js | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/App.js b/modern/src/App.js index 7f8a5829..5fd10deb 100644 --- a/modern/src/App.js +++ b/modern/src/App.js @@ -29,7 +29,6 @@ import ComputedAttributePage from './settings/ComputedAttributePage'; import MaintenancesPage from './settings/MaintenancesPage'; import MaintenancePage from './settings/MaintenancePage'; import StatisticsPage from './admin/StatisticsPage'; - import CachingController from './CachingController'; const App = () => { diff --git a/modern/src/CachingController.js b/modern/src/CachingController.js index 7adb39b8..fa3b9f6b 100644 --- a/modern/src/CachingController.js +++ b/modern/src/CachingController.js @@ -3,7 +3,6 @@ import { connect } from 'react-redux'; import { geofencesActions } from './store'; import { useEffectAsync } from './reactHelper'; - const CachingController = () => { const authenticated = useSelector(state => !!state.session.user); const dispatch = useDispatch(); @@ -16,6 +15,7 @@ const CachingController = () => { } } }, [authenticated]); + return null; } diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index 2478cad0..a14fc930 100644 --- a/modern/src/reports/EventReportPage.js +++ b/modern/src/reports/EventReportPage.js @@ -63,7 +63,7 @@ const EventReportPage = () => { const [items, setItems] = useState([]); const formatGeofence = value => { - if (value !== 0) { + if (value > 0) { const geofence = geofences[value]; return geofence ? geofence.name : ''; } |