fix(profile): button enregistrer should be greysed when stored or no change
This commit is contained in:
parent
dccf361dbc
commit
9cfb40e510
1 changed files with 3 additions and 0 deletions
|
@ -114,11 +114,14 @@ export default function Form({
|
|||
username: data.username,
|
||||
},
|
||||
});
|
||||
|
||||
methods.reset(data);
|
||||
},
|
||||
[
|
||||
checkEmailIsRegistered,
|
||||
clearErrors,
|
||||
email,
|
||||
methods,
|
||||
saveProfileMutation,
|
||||
setError,
|
||||
userId,
|
||||
|
|
Loading…
Add table
Reference in a new issue