diff --git a/apps/web/pages/settings/my-account/profile.tsx b/apps/web/pages/settings/my-account/profile.tsx index 50c920dbed..093b4bde1f 100644 --- a/apps/web/pages/settings/my-account/profile.tsx +++ b/apps/web/pages/settings/my-account/profile.tsx @@ -155,8 +155,7 @@ const ProfileView = () => { const { reset, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - formState: { dirtyFields }, + formState: { isSubmitting, isDirty }, } = formMethods; useEffect(() => { @@ -197,6 +196,7 @@ const ProfileView = () => { }; if (isLoading || !user) return ; + const isDisabled = isSubmitting || !isDirty; return ( <> @@ -261,7 +261,12 @@ const ProfileView = () => { -