mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-05-02 07:59:51 -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;
|
||||
}
|
||||
let extraDistance = null;
|
||||
if (placeDetails != null) {
|
||||
if (
|
||||
placeDetails != null &&
|
||||
!(latitude === null || longitude === null)
|
||||
) {
|
||||
const myLatitude = placeDetails.latitude;
|
||||
const myLongitude = placeDetails.longitude;
|
||||
const meToThem = latlongdist(
|
||||
|
|
Loading…
Reference in New Issue
Block a user