Skip to content

Scheduling infrastructure for absolutely everyone.

fix: use shouldDirty flag (#5775)

Udit Takkar8447b1bbd544
diff --git a/apps/web/pages/settings/my-account/profile.tsx b/apps/web/pages/settings/my-account/profile.tsx
index 05419874c25..d1d816a4497 100644
--- a/apps/web/pages/settings/my-account/profile.tsx
+++ b/apps/web/pages/settings/my-account/profile.tsx
@@ -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}
/>