From bb6ca7b56371da4b2ab7893551241aaec9e9e8b6 Mon Sep 17 00:00:00 2001 From: Gwadaking Date: Wed, 1 Apr 2026 22:58:19 -0400 Subject: [PATCH] fix: use spot.latitude/longitude for feedback (geometry no longer serialized) --- frontend/src/components/SpotPanel/SpotPanel.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/SpotPanel/SpotPanel.jsx b/frontend/src/components/SpotPanel/SpotPanel.jsx index b026344..b5c8855 100644 --- a/frontend/src/components/SpotPanel/SpotPanel.jsx +++ b/frontend/src/components/SpotPanel/SpotPanel.jsx @@ -102,10 +102,9 @@ function FeedbackButton({ spot }) { const submit = async (hasSeaweed) => { if (loading || sent) return; setLoading(true); - const coords = spot.geometry?.coordinates; - if (coords) { + if (spot.latitude != null && spot.longitude != null) { await api.feedback.create({ - lat: coords[1], lng: coords[0], + lat: spot.latitude, lng: spot.longitude, hasSeaweed, coastalPointId: spot.id, }).catch(console.error); }