We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13bec2f commit 28f3993Copy full SHA for 28f3993
src/App.jsx
src/components/points-of-interest/PointOfInterest.jsx
@@ -34,6 +34,7 @@ function PointOfInterest({
34
const [unlocked, setUnlocked] = useState(false);
35
const { geolocationAvailable } = useContext(PermissionContext);
36
37
+ console.log(lat, long);
38
useEffect(() => {
39
if (
40
latitude &&
@@ -48,6 +49,7 @@ function PointOfInterest({
48
49
latitude,
50
longitude
51
);
52
+ console.log(distance);
53
setProximity(distance);
54
if (!unlocked && id === nextUnlockableId) {
55
setUnlocked(distance < 51); // todo magic number/get from config
0 commit comments