From 07f890d03dd5dc76817ecb3a14a63f2b1f5527b8 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Tue, 26 Nov 2024 09:25:49 +0900 Subject: [PATCH] fix validation --- .../components/common/map/controls/hooks/use-custom-aoi.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[]): {