Skip to content

Commit ccc123e

Browse files
authored
Merge pull request #24 from rootEnginear/fix/incorrect-method-for-seterror
fix: Correct `setCoordinates` method in `setError` callback
2 parents f956a2f + dd5cdf9 commit ccc123e

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)