Skip to content

Commit 4ebbf35

Browse files
committed
BugFix: Doesnt update
1 parent 97502aa commit 4ebbf35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shared/hooks/GpsHook.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ export function useGpsHook(isGpsAv: boolean, bufferSize: number) {
3434
},
3535
() => {},
3636
{
37+
maximumAge: 0,
3738
enableHighAccuracy: true,
3839
}
3940
)
4041
}
41-
}, [navigator.geolocation]);
42+
}, [navigator]);
4243

4344
return userLoc;
4445
}

0 commit comments

Comments
 (0)