diff --git a/templates/boundary/update-boundary-via-native-land-and-shapefile.html b/templates/boundary/update-boundary-via-native-land-and-shapefile.html index 2936fc7d7..7dbf76675 100644 --- a/templates/boundary/update-boundary-via-native-land-and-shapefile.html +++ b/templates/boundary/update-boundary-via-native-land-and-shapefile.html @@ -358,7 +358,7 @@ const boundaryData = await boundaryResponse.json() hideSpinner() - if (boundaryData.coordinates.length === 0 && boundaryData.coordinates[0].length) { + if (!boundaryData.coordinates[0].length) { const errorMessage = 'Selected location does not have any Native Land boundary' raiseError(selectionUnit, errorMessage) throw new Error(errorMessage) diff --git a/templates/communities/add-community-boundary.html b/templates/communities/add-community-boundary.html index 8015fc59e..ab805c6b8 100644 --- a/templates/communities/add-community-boundary.html +++ b/templates/communities/add-community-boundary.html @@ -256,7 +256,7 @@

Search the Native Land Digital database

document.querySelector("#community-boundary-continue-btn .fa-spinner").classList.remove("spinner-container"); document.getElementById("community-boundary-continue-btn").classList.remove("disabled-btn"); - if (boundaryData.coordinates.length === 0 && boundaryData.coordinates[0].length) { + if (!boundaryData.coordinates[0].length) { const errorMessage = 'Selected location does not have any Native Land boundary' alert(errorMessage) throw new Error(errorMessage) diff --git a/templates/communities/update-boundary-via-native-land-and-shapefile.html b/templates/communities/update-boundary-via-native-land-and-shapefile.html index 07d133a38..dcd81d0c8 100644 --- a/templates/communities/update-boundary-via-native-land-and-shapefile.html +++ b/templates/communities/update-boundary-via-native-land-and-shapefile.html @@ -310,7 +310,7 @@ const boundaryData = await boundaryResponse.json() hideSpinner() - if (boundaryData.coordinates.length === 0 && boundaryData.coordinates[0].length) { + if (!boundaryData.coordinates[0].length) { const errorMessage = 'Selected location does not have any Native Land boundary' raiseError(selectionUnit, errorMessage) throw new Error(errorMessage)