From 5a93deb78931387419d0773d42fa6b2efa3a23e1 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Mon, 30 Jan 2023 09:49:03 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20le=20filtre=20par=20d=C3=A9partement=20p?= =?UTF-8?q?lante?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/ListeResistants.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "")