diff --git a/src/routes/ListeResistants.tsx b/src/routes/ListeResistants.tsx index ff7b283..18411bc 100644 --- a/src/routes/ListeResistants.tsx +++ b/src/routes/ListeResistants.tsx @@ -37,7 +37,7 @@ function FiltreDepartement(props: { onChange: (event: React.ChangeEvent; } -const normalize = (text: string) => text +const normalize = (text: string) => (text || "") .toLowerCase() .normalize("NFD") .replace(/\p{Diacritic}/gu, "")