fix(profile): button enregistrer should be greysed when stored or no change

This commit is contained in:
devthejo 2025-07-03 14:03:29 +02:00
parent dccf361dbc
commit 9cfb40e510

View file

@ -114,11 +114,14 @@ export default function Form({
username: data.username, username: data.username,
}, },
}); });
methods.reset(data);
}, },
[ [
checkEmailIsRegistered, checkEmailIsRegistered,
clearErrors, clearErrors,
email, email,
methods,
saveProfileMutation, saveProfileMutation,
setError, setError,
userId, userId,