aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-07-26 09:45:07 -0700
committerGitHub <noreply@github.com>2021-07-26 09:45:07 -0700
commit59c60f8fcfabe855231e3dfecf9b363b7488024f (patch)
tree7b46bb05803bee25459dec70a57efe0fe3600bf9 /modern/src/map
parent618c453374c2adc5974c3a5805ffb8c883528bb5 (diff)
parent8f26d3171d8d0bccfbd00893498a6ed9db45adb2 (diff)
downloadtrackermap-web-59c60f8fcfabe855231e3dfecf9b363b7488024f.tar.gz
trackermap-web-59c60f8fcfabe855231e3dfecf9b363b7488024f.tar.bz2
trackermap-web-59c60f8fcfabe855231e3dfecf9b363b7488024f.zip
Merge pull request #885 from dkyeremeh/home-screen-fix
Home screen fix
Diffstat (limited to 'modern/src/map')
-rw-r--r--modern/src/map/StatusView.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/map/StatusView.js b/modern/src/map/StatusView.js
index 20e5b749..c0f723d2 100644
--- a/modern/src/map/StatusView.js
+++ b/modern/src/map/StatusView.js
@@ -2,10 +2,11 @@ import React from 'react';
import { useSelector } from 'react-redux';
import t from '../common/localization';
import { formatPosition } from '../common/formatter';
+import { getPosition } from '../common/selectors';
const StatusView = ({ deviceId, onShowDetails }) => {
const device = useSelector((state) => state.devices.items[deviceId]);
- const position = useSelector((state) => state.positions.items[deviceId]);
+ const position = useSelector(getPosition(deviceId));
const handleClick = (e) => {
e.preventDefault();