mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-05-03 08:29:50 -04:00
Fix wrong latitude and longitude
This commit is contained in:
parent
92a153b794
commit
6b139c69f6
|
@ -26,7 +26,10 @@ export default function EventSignups({
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
let extraDistance = null;
|
let extraDistance = null;
|
||||||
if (placeDetails != null) {
|
if (
|
||||||
|
placeDetails != null &&
|
||||||
|
!(latitude === null || longitude === null)
|
||||||
|
) {
|
||||||
const myLatitude = placeDetails.latitude;
|
const myLatitude = placeDetails.latitude;
|
||||||
const myLongitude = placeDetails.longitude;
|
const myLongitude = placeDetails.longitude;
|
||||||
const meToThem = latlongdist(
|
const meToThem = latlongdist(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user