diff --git a/src/app/auth/page.js b/src/app/auth/page.js index 8179d575..5397547f 100644 --- a/src/app/auth/page.js +++ b/src/app/auth/page.js @@ -6,11 +6,11 @@ import { authService } from '@/lib/service'; export default function AuthPage() { const router = useRouter(); - + useEffect(() => { async function fetchSession() { const { data: session } = await authService.getSessionUser(); - if (session.user) { + if (session.user) { router.push('/'); } } diff --git a/src/components/SolicitudCard.tsx b/src/components/SolicitudCard.tsx index cc901992..22851897 100644 --- a/src/components/SolicitudCard.tsx +++ b/src/components/SolicitudCard.tsx @@ -160,7 +160,7 @@ export default function SolicitudCard({