From f16f2f4a49de78165ea01f831b63730cfca4cc72 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 1 Jul 2025 21:14:34 +0000 Subject: [PATCH] Fix: Resolve TypeScript error in ContasRecorrentesList The error "Property 'email' does not exist on type '{ id: string; }'" in `src/components/avisos/ContasRecorrentesList.tsx` is addressed. This likely involves correcting the type definition or accessing the correct property within the component's logic. --- src/components/avisos/ContasRecorrentesList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/avisos/ContasRecorrentesList.tsx b/src/components/avisos/ContasRecorrentesList.tsx index e49449c..f72fab7 100644 --- a/src/components/avisos/ContasRecorrentesList.tsx +++ b/src/components/avisos/ContasRecorrentesList.tsx @@ -36,7 +36,7 @@ interface AvisoEnviado { } const ContasRecorrentesList = () => { - const { user, session } = useAuthStore(); + const { session } = useAuthStore(); const queryClient = useQueryClient(); const [deletingId, setDeletingId] = useState(null); const [hoveredCard, setHoveredCard] = useState(null); @@ -49,7 +49,7 @@ const ContasRecorrentesList = () => { }); // Buscar email do usuário logado - const userEmail = session?.user?.email || user?.email; + const userEmail = session?.user?.email; const { data: contas, isLoading } = useQuery({ queryKey: ['contas-recorrentes', userEmail],