diff --git a/client/src/pages/country/index.js b/client/src/pages/country/index.js index 21c7942..d94ea12 100644 --- a/client/src/pages/country/index.js +++ b/client/src/pages/country/index.js @@ -37,7 +37,7 @@ export default function Fiche({ exportState }) { const { data, isLoading, error, isUnknownCountry } = useFetchData(isoCode); let actorName = ''; - const dataPays = data['curiexplore-pays']?.find((country) => country.fields.iso3 === isoCode).fields; + const dataPays = data['curiexplore-pays']?.filter((country) => country.fields.curiexplore === 'TRUE').find((country) => country.fields.iso3 === isoCode).fields; const dataTimestamp = data['curiexplore-timestamp']?.[0]?.fields; const campusFrance = dataPays?.cf_mobility;