Skip to content

Commit

Permalink
fix(useGeolocation)!: latitude and longitude default to Infinity (vit…
Browse files Browse the repository at this point in the history
  • Loading branch information
michealroberts committed Nov 20, 2021
1 parent 1229ae0 commit 09f8b51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/useGeolocation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export function useGeolocation(options: GeolocationOptions = {}) {
const error = ref<GeolocationPositionError | null>(null)
const coords: Ref<GeolocationPosition['coords']> = ref({
accuracy: 0,
latitude: 0,
longitude: 0,
latitude: Infinity,
longitude: Infinity,
altitude: null,
altitudeAccuracy: null,
heading: null,
Expand Down

0 comments on commit 09f8b51

Please sign in to comment.