From 8447b1bbd5448f13af22b4f7f4721d2087572d62 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Tue, 29 Nov 2022 21:19:02 +0530 Subject: [PATCH] fix: use shouldDirty flag (#5775) Signed-off-by: Udit Takkar Signed-off-by: Udit Takkar --- apps/web/pages/settings/my-account/profile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/pages/settings/my-account/profile.tsx b/apps/web/pages/settings/my-account/profile.tsx index 05419874c2..d1d816a449 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} />