diff --git a/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx b/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx index cafc02a..2740380 100644 --- a/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx +++ b/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx @@ -1243,48 +1243,77 @@ const OpenlayersMapView = (props) => {
{/* SITE CONTENTS */} -
-
-
Site contents
-
-
-

- - {state.popupDetails.properties.nFacilities || 0}{' '} - Facilities - -

-
-
-

- - {state.popupDetails.properties.nInstallations || 0}{' '} - Installations - -

-
-
-

Large combustion plants

+ {state.popupDetails.properties.nFacilities || + state.popupDetails.properties.nInstallations || + state.popupDetails.properties.nLCP ? ( +
+
+
Site contents
+
+ {state.popupDetails.properties.nFacilities ? ( +
+

+ + {state.popupDetails.properties.nFacilities} + Facilit + {state.popupDetails.properties.nFacilities > 1 + ? 'ies' + : 'y'} + +

+
+ ) : ( + '' + )} + {state.popupDetails.properties.nInstallations ? ( +
+

+ + {state.popupDetails.properties.nInstallations} + Installation + {state.popupDetails.properties.nInstallations > 1 + ? 's' + : ''} + +

+
+ ) : ( + '' + )} + {state.popupDetails.properties.nLCP ? ( +
+

+ {state.popupDetails.properties.nLCP} + Large combustion plant + {state.popupDetails.properties.nLCP > 1 ? 's' : ''} +

+
+ ) : ( + '' + )}
-
+ ) : ( + '' + )} + {/* SITE POLLUTANT EMISSIONS */}
@@ -1292,16 +1321,7 @@ const OpenlayersMapView = (props) => {
{state.popupDetails.properties.pollutants ? ( -

- {state.popupDetails.properties.pollutants} - {/* {state.popupDetails.properties.pollutants.substring( - 0, - 256, - )} - {state.popupDetails.properties.pollutants.length > 256 - ? '...' - : ''} */} -

+

{state.popupDetails.properties.pollutants}

) : (

There are no data regarding the pollutants

)}