Skip to content

Commit

Permalink
refactor: merge watchers into one
Browse files Browse the repository at this point in the history
  • Loading branch information
AlitaBernachot committed Dec 2, 2024
1 parent 808e986 commit 4b087f9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/composables/map/profile-position.composable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,12 @@ export default function useProfilePosition(
() => toValue(activatePositioning),
active => {
activePositioning.value = active ?? true
}
)

watch(activePositioning, active => {
if (!active) {
overlay?.removeGeoMarker()
if (!active) {
overlay?.removeGeoMarker()
}
}
})
)

watch(profileData, profileData => {
if (profileData) {
Expand Down

0 comments on commit 4b087f9

Please sign in to comment.