From 178d6c3ba70e56da651944c5a3c39e28ae244315 Mon Sep 17 00:00:00 2001
From: Ivan <8611739+IRBorisov@users.noreply.github.com>
Date: Thu, 30 Jan 2025 20:39:16 +0300
Subject: [PATCH] B: Fix register page
---
rsconcept/frontend/src/pages/RegisterPage/RegisterPage.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rsconcept/frontend/src/pages/RegisterPage/RegisterPage.tsx b/rsconcept/frontend/src/pages/RegisterPage/RegisterPage.tsx
index 6ab372dd..3570eb29 100644
--- a/rsconcept/frontend/src/pages/RegisterPage/RegisterPage.tsx
+++ b/rsconcept/frontend/src/pages/RegisterPage/RegisterPage.tsx
@@ -4,9 +4,9 @@ import ExpectedAnonymous from '@/components/ExpectedAnonymous';
import FormSignup from './FormSignup';
export function RegisterPage() {
- const { user } = useAuthSuspense();
+ const { isAnonymous } = useAuthSuspense();
- if (user) {
+ if (!isAnonymous) {
return ;
} else {
return ;