From 9cfb40e510584567400a6ea6f4871b345d723ac6 Mon Sep 17 00:00:00 2001 From: devthejo Date: Thu, 3 Jul 2025 14:03:29 +0200 Subject: [PATCH] fix(profile): button enregistrer should be greysed when stored or no change --- src/scenes/Profile/Form.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scenes/Profile/Form.js b/src/scenes/Profile/Form.js index 5edab55..8fdf7ab 100644 --- a/src/scenes/Profile/Form.js +++ b/src/scenes/Profile/Form.js @@ -114,11 +114,14 @@ export default function Form({ username: data.username, }, }); + + methods.reset(data); }, [ checkEmailIsRegistered, clearErrors, email, + methods, saveProfileMutation, setError, userId,