fix: le filtre par département plante

proto-module-actu-react
Jalil Arfaoui 2023-01-30 09:49:03 +01:00
parent 8878aad654
commit 5a93deb789
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ function FiltreDepartement(props: { onChange: (event: React.ChangeEvent<HTMLSele
</select>;
}
const normalize = (text: string) => text
const normalize = (text: string) => (text || "")
.toLowerCase()
.normalize("NFD")
.replace(/\p{Diacritic}/gu, "")