Skip to content

Commit

Permalink
fix: rename moveToUser to moveToUserAndShowCallout
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Dec 15, 2024
1 parent c0491d6 commit 0b5743d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev-client/src/screens/SitesScreen/SitesScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const SitesScreen = memo(() => {
[setCalloutState, mapRef],
);

const moveToUser = useCallback(() => {
const moveToUserAndShowCallout = useCallback(() => {
if (currentUserCoords !== null) {
mapRef.current?.moveToPoint(currentUserCoords);
setCalloutState(
Expand Down Expand Up @@ -168,7 +168,7 @@ export const SitesScreen = memo(() => {
<Box flex={1} zIndex={-1}>
<MapSearch
zoomTo={searchFunction}
zoomToUser={moveToUser}
zoomToUser={moveToUserAndShowCallout}
toggleMapLayer={toggleMapLayer}
/>
<SiteMap
Expand Down

0 comments on commit 0b5743d

Please sign in to comment.