diff --git a/client/src/pages/me/ui/sections/AuthMethodsSection.tsx b/client/src/pages/me/ui/sections/AuthMethodsSection.tsx index ca090cd..00993c8 100644 --- a/client/src/pages/me/ui/sections/AuthMethodsSection.tsx +++ b/client/src/pages/me/ui/sections/AuthMethodsSection.tsx @@ -10,6 +10,8 @@ import { useMutation } from '@tanstack/react-query' import { useUnit } from 'effector-react' import { useForm } from 'react-hook-form' import { useSearchParams } from 'react-router-dom' +import { getErrorMessage } from '@/shared/lib/get-error-message' +import { isSyntheticEmail } from '@/shared/lib/is-synthetic-email' import { $user, changePasswordFx, @@ -19,7 +21,6 @@ import { unlinkOAuthFx, type AuthMethod, } from '@/shared/model/auth' -import { getErrorMessage } from '@/shared/lib/get-error-message' const METHOD_LABELS: Record = { password: 'Пароль', vk: 'ВКонтакте', yandex: 'Яндекс' } @@ -117,6 +118,13 @@ export function AuthMethodsSection() { {user.email} + {isSyntheticEmail(user.email) && ( + + Ваша почта сгенерирована автоматически. Без указания реальной почты вы не сможете получать уведомления о + заказах. + + )} + {!verificationUrl && (