diff --git a/apps/web/pages/settings/my-account/general.tsx b/apps/web/pages/settings/my-account/general.tsx index 0fdc405110..efc5c92bc4 100644 --- a/apps/web/pages/settings/my-account/general.tsx +++ b/apps/web/pages/settings/my-account/general.tsx @@ -70,6 +70,7 @@ const GeneralView = ({ localeProp, user }: GeneralViewProps) => { const mutation = trpc.viewer.updateProfile.useMutation({ onSuccess: () => { + reset(getValues()); showToast(t("settings_updated_successfully"), "success"); }, onError: () => { @@ -119,7 +120,12 @@ const GeneralView = ({ localeProp, user }: GeneralViewProps) => { }, }, }); - + const { + formState: { isDirty, isSubmitting }, + reset, + getValues, + } = formMethods; + const isDisabled = isSubmitting || !isDirty; return (