diff --git a/app/javascript/app/components/ndcs/net-zero-map/net-zero-map-component.jsx b/app/javascript/app/components/ndcs/net-zero-map/net-zero-map-component.jsx index 75b0b8ee9..27a2eccc9 100644 --- a/app/javascript/app/components/ndcs/net-zero-map/net-zero-map-component.jsx +++ b/app/javascript/app/components/ndcs/net-zero-map/net-zero-map-component.jsx @@ -148,7 +148,8 @@ function NetZeroMap(props) { tooltipValues, donutActiveIndex, selectActiveDonutIndex, - pngDownloadId + pngDownloadId, + showEUCountriesCheckbox } = props; useEffect(() => { selectActiveDonutIndex(0); @@ -305,12 +306,14 @@ function NetZeroMap(props) { text="The map reflects latest communication of each country. Explore which countries have adopted a net-zero target below and click on a country to see its climate profile." /> {renderMap({ isTablet })} - handleOnChangeChecked(!checked)} - /> + {showEUCountriesCheckbox && ( + handleOnChangeChecked(!checked)} + /> + )} {countryData && ( { donutActiveIndex: getDonutActiveIndex(netZeroWithSelection), pngSelectionSubtitle: getPngSelectionSubtitle(netZeroWithSelection), selectedLocations: getSelectedLocations(netZeroWithSelection), - locations: getLocations(netZeroWithSelection) + locations: getLocations(netZeroWithSelection), + showEUCountriesCheckbox: getShowEUCountriesCheckbox(netZeroWithSelection) }; };