diff --git a/app/scripts/components/common/map/controls/hooks/use-custom-aoi.tsx b/app/scripts/components/common/map/controls/hooks/use-custom-aoi.tsx index 3fae75f51..86af79e76 100644 --- a/app/scripts/components/common/map/controls/hooks/use-custom-aoi.tsx +++ b/app/scripts/components/common/map/controls/hooks/use-custom-aoi.tsx @@ -53,7 +53,7 @@ function extractPolygonsFromGeojson( } function validateFeatureCount(features: Feature[]): boolean { - if (features.length > maxPolygonNum) return false; + return features.length <= maxPolygonNum; } function removePolygonHoles(features: Feature[]): {