Skip to content

Commit

Permalink
Merge pull request #24 from rootEnginear/fix/incorrect-method-for-set…
Browse files Browse the repository at this point in the history
…error

fix: Correct `setCoordinates` method in `setError` callback
  • Loading branch information
bence-toth authored Nov 28, 2020
2 parents f956a2f + dd5cdf9 commit ccc123e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const useGeolocation = ({enableHighAccuracy, maximumAge, timeout} = {}, callback

const setError = error => {
if (!didCancel) {
updateCoordinates({
setCoordinates({
accuracy: null,
altitude: null,
altitudeAccuracy: null,
Expand Down

0 comments on commit ccc123e

Please sign in to comment.