Skip to content

Commit

Permalink
fix: Remove double action on marker click
Browse files Browse the repository at this point in the history
  • Loading branch information
hampfh committed Nov 17, 2024
1 parent 154c4f0 commit c1dbaed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/student/map/_components/MapComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function MapComponent({
function onMapClick(e: MapLayerMouseEvent) {
const feature = e.features?.[0] as GeoJsonBooth | undefined // no other features for now
if (feature) {
setActiveBoothId(feature.properties.id)
//setActiveBoothId(feature.properties.id) <-- We don't want the map to move, double action...
setActiveDrawerBoothId(feature.properties.id)
openDrawer()
} else {
Expand Down

0 comments on commit c1dbaed

Please sign in to comment.