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,
|
username: data.username,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
methods.reset(data);
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
checkEmailIsRegistered,
|
checkEmailIsRegistered,
|
||||||
clearErrors,
|
clearErrors,
|
||||||
email,
|
email,
|
||||||
|
methods,
|
||||||
saveProfileMutation,
|
saveProfileMutation,
|
||||||
setError,
|
setError,
|
||||||
userId,
|
userId,
|
||||||
|
|
Loading…
Add table
Reference in a new issue