mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-04-04 01:51:28 +00:00
fix: Suppression d'un PROFILE si aucun PROFILE_ROLE n'y est associé [N3WTS-1]
This commit is contained in:
@ -152,6 +152,13 @@ const TeachersSection = ({
|
||||
// Vérifier si l'email correspond à un profil existant
|
||||
const existingProfile = profiles.find((profile) => profile.email === email);
|
||||
|
||||
// Ajout du log si l'adresse email est déjà utilisée pour un profil existant
|
||||
if (existingProfile) {
|
||||
logger.info(
|
||||
`Adresse email déjà utilisée pour le profil ${existingProfile.id}`
|
||||
);
|
||||
}
|
||||
|
||||
setFormData((prevData) => ({
|
||||
...prevData,
|
||||
associated_profile_email: email,
|
||||
|
||||
Reference in New Issue
Block a user