Skip to content

Commit 5b81b1b

Browse files
author
Sine Jespersen
committed
remove number()
1 parent e118279 commit 5b81b1b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ function PointOfInterest({
5252
);
5353
setProximity(distance);
5454
if (!unlocked && id === nextUnlockableId) {
55-
setUnlocked(
56-
distance < accuracy || distance < Number(proximityToUnlock)
57-
);
55+
setUnlocked(distance < accuracy || distance < proximityToUnlock);
5856
}
5957
}
6058
}, [latitude, longitude, lat, long, geolocationAvailable]);

0 commit comments

Comments
 (0)