Merge Dev in Staging

This commit is contained in:
Arnaud D. Natali 2023-10-24 10:33:33 +02:00 committed by GitHub
commit c199e2867b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,9 +173,15 @@ export default function UserInformations(props: IProps) {
const liveVote = await LiveVotes.getInstance().post(vote);
if (liveVote.appointment.votes?.length === 3) {
if(superAdminModalType === "add") {
Toasts.getInstance().open({
title: `Le titre de super-administrateur a été attribué à ${userSelected.contact?.first_name} ${userSelected.contact?.last_name} `,
});
} else {
Toasts.getInstance().open({
title: `Le titre de super-administrateur a été retiré à ${userSelected.contact?.first_name} ${userSelected.contact?.last_name} `,
});
}
}
await getUser();
setIsSuperAdminModalOpened(false);