aboutsummaryrefslogtreecommitdiff
path: root/modern/src/other/ReplayPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-16 17:39:21 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-16 17:39:21 -0700
commitc85fcb9661cfa0e417fa24e1497fca3152f48f2f (patch)
treea14c0e39a52ae985e9b9911ca95b585ca27fff8b /modern/src/other/ReplayPage.js
parentd212a2897ec3c7f0cb7b4a4556e9147bb29a8aae (diff)
downloadtrackermap-web-c85fcb9661cfa0e417fa24e1497fca3152f48f2f.tar.gz
trackermap-web-c85fcb9661cfa0e417fa24e1497fca3152f48f2f.tar.bz2
trackermap-web-c85fcb9661cfa0e417fa24e1497fca3152f48f2f.zip
Fix map click
Diffstat (limited to 'modern/src/other/ReplayPage.js')
-rw-r--r--modern/src/other/ReplayPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/other/ReplayPage.js b/modern/src/other/ReplayPage.js
index fb83d5a9..67e44105 100644
--- a/modern/src/other/ReplayPage.js
+++ b/modern/src/other/ReplayPage.js
@@ -165,7 +165,7 @@ const ReplayPage = () => {
{index < positions.length && (
<MapPositions
positions={[positions[index]]}
- onClick={() => setShowCard(true)}
+ onClick={(positionId) => setShowCard(!!positionId)}
/>
)}
</MapView>