Skip to content

Commit dd5cdf9

Browse files
committed
fix: Correct setCoor method in setError callback
1 parent f956a2f commit dd5cdf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const useGeolocation = ({enableHighAccuracy, maximumAge, timeout} = {}, callback
5656

5757
const setError = error => {
5858
if (!didCancel) {
59-
updateCoordinates({
59+
setCoordinates({
6060
accuracy: null,
6161
altitude: null,
6262
altitudeAccuracy: null,

0 commit comments

Comments
 (0)