fix: remove optional chaining operator

This commit is contained in:
abdou6666 2025-02-07 16:13:54 +01:00
parent 2fde4e3439
commit 1e75866dca

View File

@ -21,7 +21,7 @@ const GeolocationMessage: React.FC<GeolocationMessageProps> = ({ message }) => {
throw new Error("Unable to find coordinates");
}
const { lat, lon } = message?.coordinates || { lat: 0.0, lng: 0.0 };
const { lat, lon } = message.coordinates || { lat: 0.0, lng: 0.0 };
const openStreetMapUrl = `https://www.openstreetmap.org/export/embed.html?bbox=${
lon - 0.1
},${lat - 0.1},${lon + 0.1},${lat + 0.1}&layer=mapnik&marker=${lat},${lon}`;