use fetchWrapper for modifyRole.js
This commit is contained in:
@@ -24,7 +24,7 @@ export default function ModifyRole({ user }) {
|
||||
const handleRoleUpdate = async () => {
|
||||
const res = await modifyRole(selectedRole, user.id);
|
||||
|
||||
if (res.success) {
|
||||
if (res.status === 200) {
|
||||
setDescription("Rôle modifié avec succès");
|
||||
setTitle("Modification")
|
||||
setOpen(true);
|
||||
|
||||
Reference in New Issue
Block a user