File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/components/points-of-interest Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -34,23 +34,20 @@ function PointOfInterest({
34
34
const [ unlocked , setUnlocked ] = useState ( false ) ;
35
35
const { geolocationAvailable } = useContext ( PermissionContext ) ;
36
36
37
- console . log ( lat , long ) ;
38
- console . log ( geolocationAvailable ) ;
39
37
useEffect ( ( ) => {
40
38
if (
41
39
latitude &&
42
40
longitude &&
43
41
lat &&
44
42
long &&
45
- geolocationAvailable === "granted "
43
+ geolocationAvailable !== "denied "
46
44
) {
47
45
const distance = getDistanceBetweenCoordinates (
48
46
lat ,
49
47
long ,
50
48
latitude ,
51
49
longitude
52
50
) ;
53
- console . log ( distance ) ;
54
51
setProximity ( distance ) ;
55
52
if ( ! unlocked && id === nextUnlockableId ) {
56
53
setUnlocked ( distance < 51 ) ; // todo magic number/get from config
You can’t perform that action at this time.
0 commit comments