From fe1753c0ade3a0d19f1547c5d1fce7e56b0b7a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heath=20Dutton=F0=9F=95=B4=EF=B8=8F?= Date: Fri, 2 Jan 2026 00:42:58 -0500 Subject: [PATCH] fix: reject degenerate polygons in AOI area validation --- frontend/src/utils/geo/geo-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/geo/geo-utils.ts b/frontend/src/utils/geo/geo-utils.ts index 8b910455..782cdae9 100644 --- a/frontend/src/utils/geo/geo-utils.ts +++ b/frontend/src/utils/geo/geo-utils.ts @@ -70,7 +70,7 @@ export const validateGeoJSONArea = (geojsonFeature: Feature) => { const area = calculateGeoJSONArea(geojsonFeature); if (!area || isNaN(area) || area === Infinity || area === 0) { - return false; + return true; } return area < MIN_TRAINING_AREA_SIZE || area > MAX_TRAINING_AREA_SIZE; };