From 1e75866dcad7ca04dbef646ea27ce8a399123d1a Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Fri, 7 Feb 2025 16:13:54 +0100 Subject: [PATCH] fix: remove optional chaining operator --- frontend/src/components/inbox/components/GeolocationMessage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/inbox/components/GeolocationMessage.tsx b/frontend/src/components/inbox/components/GeolocationMessage.tsx index e233f913..b9c11a6c 100644 --- a/frontend/src/components/inbox/components/GeolocationMessage.tsx +++ b/frontend/src/components/inbox/components/GeolocationMessage.tsx @@ -21,7 +21,7 @@ const GeolocationMessage: React.FC = ({ 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}`;