From e7ccf6466c21c08dbb482ff7e552d49753874e0e Mon Sep 17 00:00:00 2001 From: fcarraUniSa Date: Tue, 17 Feb 2026 12:51:16 +0100 Subject: [PATCH] Update AgentDashboard.tsx --- components/AgentDashboard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/AgentDashboard.tsx b/components/AgentDashboard.tsx index 4837c63..0af9cc0 100644 --- a/components/AgentDashboard.tsx +++ b/components/AgentDashboard.tsx @@ -1412,7 +1412,7 @@ export const AgentDashboard: React.FC = ({ {ticket.attachments.length} )} - {ticket.createdAt.split('T')[0]} + {(ticket.createdAt || '').split('T')[0]} )) @@ -1483,7 +1483,7 @@ export const AgentDashboard: React.FC = ({ ) : ( selectedTicket.messages.map(m => (
-

{m.role === 'assistant' ? 'Agente' : 'Cliente'} {m.timestamp.split('T')[1].substring(0,5)}

+

{m.role === 'assistant' ? 'Agente' : 'Cliente'} {(m.timestamp || '').split(/[T ]/)[1]?.substring(0, 5) || ''}

{m.content}

))