diff --git a/packages/commonwealth/client/scripts/views/modals/WelcomeOnboardModal/steps/PersonalInformationStep/PersonalInformationStep.tsx b/packages/commonwealth/client/scripts/views/modals/WelcomeOnboardModal/steps/PersonalInformationStep/PersonalInformationStep.tsx index 27f1ab4e778..3bb57c279e3 100644 --- a/packages/commonwealth/client/scripts/views/modals/WelcomeOnboardModal/steps/PersonalInformationStep/PersonalInformationStep.tsx +++ b/packages/commonwealth/client/scripts/views/modals/WelcomeOnboardModal/steps/PersonalInformationStep/PersonalInformationStep.tsx @@ -10,7 +10,6 @@ import { // eslint-disable-next-line max-len import { useUpdateSubscriptionPreferencesMutation } from 'state/api/trpc/subscription/useUpdateSubscriptionPreferencesMutation'; import { - useUpdateUserEmailMutation, useUpdateUserEmailSettingsMutation, useUpdateUserMutation, } from 'state/api/user'; @@ -45,7 +44,6 @@ const PersonalInformationStep = ({ const debouncedSearchTerm = useDebounce(currentUsername, 500); const user = useUserStore(); - const { mutateAsync: updateEmail } = useUpdateUserEmailMutation({}); const { mutateAsync: updateEmailSettings } = useUpdateUserEmailSettingsMutation(); const { refetch: refetchProfileData } = useFetchProfileByIdQuery({ @@ -130,11 +128,6 @@ const PersonalInformationStep = ({ }, }); - // set email for notifications - if (values.email) { - await updateEmail({ email: values.email }); - } - if (values.enableAccountNotifications) { await updateSubscriptionPreferences({ id: user.id,