Skip to content

Commit bd23f0f

Browse files
author
Sine Jespersen
committed
remove debug value
1 parent bc0b342 commit bd23f0f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/points/DistanceComponent.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function DistanceComponent({ id, latitude, longitude, classes, proximityToUnlock
88
const { lat, long } = useContext(LatLongContext);
99
const distance = useMemo(
1010
() => getDistanceBetweenCoordinates(lat, long, latitude, longitude),
11-
[lat, long, latitude, longitude],
11+
[lat, long, latitude, longitude]
1212
);
1313
function unlockThisPoint() {
1414
setListOfUnlocked([...listOfUnlocked, ...[id]]);
@@ -27,7 +27,6 @@ function DistanceComponent({ id, latitude, longitude, classes, proximityToUnlock
2727
localStorage.setItem(storageKey, JSON.stringify([id]));
2828
}
2929
}
30-
proximityToUnlock = 3000;
3130

3231
useEffect(() => {
3332
if (!listOfUnlocked.includes(id) && proximityToUnlock !== null) {

0 commit comments

Comments
 (0)