diff --git a/src/components/auth/ProtectedRoute.tsx b/src/components/auth/ProtectedRoute.tsx
index 3493b6a..dfa133e 100644
--- a/src/components/auth/ProtectedRoute.tsx
+++ b/src/components/auth/ProtectedRoute.tsx
@@ -13,9 +13,6 @@ export function ProtectedRoute({ children, allowedRoles = [] }: ProtectedRoutePr
const { user, loading, userRole } = useAuth();
const location = useLocation();
- console.log('ProtectedRoute - User:', user?.user_metadata);
- console.log('ProtectedRoute - UserRole do contexto:', userRole);
- console.log('ProtectedRoute - Roles permitidas:', allowedRoles);
if (loading) {
return
Carregando...
;
@@ -28,7 +25,6 @@ export function ProtectedRoute({ children, allowedRoles = [] }: ProtectedRoutePr
// Pegar o role diretamente dos metadados do usuário
const currentRole = user.user_metadata?.role;
- console.log('ProtectedRoute - Role dos metadados:', currentRole);
// Se não houver roles requeridas, permite acesso
if (allowedRoles.length === 0) {
diff --git a/src/pages/student-dashboard/StoryPage.tsx b/src/pages/student-dashboard/StoryPage.tsx
index c1fef79..2233933 100644
--- a/src/pages/student-dashboard/StoryPage.tsx
+++ b/src/pages/student-dashboard/StoryPage.tsx
@@ -450,8 +450,7 @@ export function StoryPage() {
if (error) throw error;
- // Log para debug
- console.log('Recordings fetched:', data);
+
if (data && data.length > 0) {
setRecordings(data);