email-app / ChatWindow.tsx
JeCabrera's picture
Updated ChatWindow.tsx to fix duplicate error messages by removing the onError call from the catch block.
5c81546
raw
history blame contribute delete
162 Bytes
try {
// Your code logic here
} catch (error) {
setChatError(error.message);
setMessages(prev => [...prev, { text: error.message, type: 'error' }]);
}