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.
This commit is contained in:
parent
e5082b807c
commit
f16f2f4a49
@ -36,7 +36,7 @@ interface AvisoEnviado {
|
||||
}
|
||||
|
||||
const ContasRecorrentesList = () => {
|
||||
const { user, session } = useAuthStore();
|
||||
const { session } = useAuthStore();
|
||||
const queryClient = useQueryClient();
|
||||
const [deletingId, setDeletingId] = useState<string | null>(null);
|
||||
const [hoveredCard, setHoveredCard] = useState<string | null>(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],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user