From 70ce84c8a70057b76bc0b1f99d7e454ebaac55a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=9D=D0=B0=D0=B4=D0=B5?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Tue, 3 Nov 2026 18:38:31 +0300 Subject: [PATCH] Preserve registration form while rechecking access --- frontend/src/app/register/page.tsx | 13 +++++++++++-- frontend/src/hooks/useRegistrationAvailability.ts | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/register/page.tsx b/frontend/src/app/register/page.tsx index 11f8f6e5..ce6e04f8 100644 --- a/frontend/src/app/register/page.tsx +++ b/frontend/src/app/register/page.tsx @@ -307,7 +307,10 @@ export default function Register() { } }; - if (registration.state !== "allowed") { + if ( + registration.state !== "allowed" && + !(registration.state === "loading" && registration.previouslyAllowed) + ) { return ( )} + {registration.state === "loading" && ( +

+ Проверяем доступность регистрации… +

+ )} +
{/* Шаг 1: Личные данные */} {currentStep === 1 && ( @@ -710,7 +719,7 @@ export default function Register() {