Skip to content

Commit 1bbc67f

Browse files
committed
iphone fix
1 parent 69b89de commit 1bbc67f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/points-of-interest/PointOfInterest.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,20 @@ function PointOfInterest({
3434
const [unlocked, setUnlocked] = useState(false);
3535
const { geolocationAvailable } = useContext(PermissionContext);
3636

37-
console.log(lat, long);
38-
console.log(geolocationAvailable);
3937
useEffect(() => {
4038
if (
4139
latitude &&
4240
longitude &&
4341
lat &&
4442
long &&
45-
geolocationAvailable === "granted"
43+
geolocationAvailable !== "denied"
4644
) {
4745
const distance = getDistanceBetweenCoordinates(
4846
lat,
4947
long,
5048
latitude,
5149
longitude
5250
);
53-
console.log(distance);
5451
setProximity(distance);
5552
if (!unlocked && id === nextUnlockableId) {
5653
setUnlocked(distance < 51); // todo magic number/get from config

0 commit comments

Comments
 (0)