From 3fc77a0683310c46cc64aa5e4f2336a2ec86b4a6 Mon Sep 17 00:00:00 2001 From: Jake Kasper Date: Fri, 5 Sep 2025 12:22:01 -0400 Subject: [PATCH] asdfasf --- frontend/src/pages/Properties/PropertyDetail.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Properties/PropertyDetail.js b/frontend/src/pages/Properties/PropertyDetail.js index 796021d..1bcbf15 100644 --- a/frontend/src/pages/Properties/PropertyDetail.js +++ b/frontend/src/pages/Properties/PropertyDetail.js @@ -561,7 +561,7 @@ const PropertyDetail = () => { if (!navigator.geolocation) { toast.error('GPS not available'); return; } // Prefer most accurate recent fix from warm watch; fall back to immediate read const candidate = bestRecentSample(); - const useFix = (lat, lng, acc) => { + const applyFix = (lat, lng, acc) => { setGpsAccuracy(acc || null); setGpsTracePoints(prev => { const normalized = acceptAndNormalizePoint(lat, lng, acc, prev); @@ -581,12 +581,12 @@ const PropertyDetail = () => { }; if (candidate) { const [lat, lng, acc] = candidate; - useFix(lat, lng, acc); + applyFix(lat, lng, acc); } else { navigator.geolocation.getCurrentPosition((pos) => { const { latitude, longitude, accuracy } = pos.coords; addSampleAndSmooth(latitude, longitude, accuracy); - useFix(latitude, longitude, accuracy); + applyFix(latitude, longitude, accuracy); }, (err)=>{ console.warn('GPS error', err?.message); toast.error('GPS error: ' + (err?.message || 'unknown'));