Skip to content

Commit

Permalink
Filtre les noms de personne vides
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-rutkowski committed Nov 7, 2023
1 parent 0709a9f commit 476cf9e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ const fetchPersonneListe = async (
throw new Error(error.message);
}

return data as unknown as Personne[];
return (
(data as unknown as Personne[])
// filtre pour éviter les entrées avec un nom vide (pb des invitations : en
// attente de correctif back)
?.filter(p => p.nom?.trim())
);
};

export const usePersonneListe = () => {
Expand Down

0 comments on commit 476cf9e

Please sign in to comment.