From 7dda79e7013fccf328617ab2dd4ab1b127e81fcb Mon Sep 17 00:00:00 2001
From: Ivan <8611739+IRBorisov@users.noreply.github.com>
Date: Thu, 30 Jan 2025 20:39:27 +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 ;