diff options
-rw-r--r-- | modern/src/map/SelectedDeviceMap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/SelectedDeviceMap.js b/modern/src/map/SelectedDeviceMap.js index d09fdb9f..1294085c 100644 --- a/modern/src/map/SelectedDeviceMap.js +++ b/modern/src/map/SelectedDeviceMap.js @@ -15,7 +15,7 @@ const SelectedDeviceMap = () => { const [mapFollow] = usePersistedState('mapFollow', false); useEffect(() => { - if ((selectedDeviceId != previousDeviceId || mapFollow) && position) { + if ((selectedDeviceId !== previousDeviceId || mapFollow) && position) { map.easeTo({ center: [position.longitude, position.latitude], offset: [0, -dimensions.popupMapOffset / 2], |