aboutsummaryrefslogtreecommitdiff
path: root/modern/src/MainMap.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-06-06 15:38:59 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-06-06 15:38:59 -0700
commitf8643e6bd88c20cc13383a86f457d909cdd6ae6e (patch)
tree8a9ec30921684d822a4346907617d9bb94c12f80 /modern/src/MainMap.js
parentcc03e41dd7f9f401797f39eb08e7d4617d624a2f (diff)
downloadtrackermap-web-f8643e6bd88c20cc13383a86f457d909cdd6ae6e.tar.gz
trackermap-web-f8643e6bd88c20cc13383a86f457d909cdd6ae6e.tar.bz2
trackermap-web-f8643e6bd88c20cc13383a86f457d909cdd6ae6e.zip
Use proper session state
Diffstat (limited to 'modern/src/MainMap.js')
-rw-r--r--modern/src/MainMap.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/MainMap.js b/modern/src/MainMap.js
index fdc193c2..35e5348a 100644
--- a/modern/src/MainMap.js
+++ b/modern/src/MainMap.js
@@ -11,14 +11,14 @@ const calculateMapCenter = (state) => {
}
}
return null;
-}
+};
const mapFeatureProperties = (state, position) => {
const device = state.devices.items[position.deviceId] || null;
return {
name: device ? device.name : ''
}
-}
+};
const mapStateToProps = state => ({
mapCenter: calculateMapCenter(state),