From f04d45d271ec294ac1d2e75a19d8a1d4b39a1618 Mon Sep 17 00:00:00 2001 From: MaryWylde Date: Wed, 8 Apr 2026 15:23:15 +0400 Subject: [PATCH] hotfix: change the source of getting user id --- src/pages/user/[userId]/certificate.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/user/[userId]/certificate.tsx b/src/pages/user/[userId]/certificate.tsx index d37a0e0..fae9047 100644 --- a/src/pages/user/[userId]/certificate.tsx +++ b/src/pages/user/[userId]/certificate.tsx @@ -17,10 +17,10 @@ import NotFoundPage from '../../404'; const Certificate = ({ userId, certificate }) => { const router = useRouter(); const { locale } = router as TRouter; - const { accountData } = useContext(GlobalContext); + const { uxcatUserInfo } = useContext(GlobalContext); const name = - accountData?.id === 1034 + uxcatUserInfo.user.id === 1034 ? 'Кузнецов Тимофей Юрьевич' : `${certificate?.name} ${certificate?.surname}`; const date = new Date(certificate?.certificatedAt);