fix: use shouldDirty flag (#5775)
Signed-off-by: Udit Takkar <[email protected]> Signed-off-by: Udit Takkar <[email protected]>
This commit is contained in:
1 parent
0d03006653
commit
8447b1bbd5
1 file changed
+1
-1
@@ -235,7 +235,7 @@ const ProfileView = () => {
|
||||
id="avatar-upload"
|
||||
buttonMsg={t("change_avatar")}
|
||||
handleAvatarChange={(newAvatar) => {
|
||||
formMethods.setValue("avatar", newAvatar);
|
||||
formMethods.setValue("avatar", newAvatar, { shouldDirty: true });
|
||||
}}
|
||||
imageSrc={value}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user