JeCabrera commited on
Commit
5c81546
·
1 Parent(s): 62e9528

Updated ChatWindow.tsx to fix duplicate error messages by removing the onError call from the catch block.

Browse files
Files changed (1) hide show
  1. ChatWindow.tsx +6 -0
ChatWindow.tsx ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ try {
2
+ // Your code logic here
3
+ } catch (error) {
4
+ setChatError(error.message);
5
+ setMessages(prev => [...prev, { text: error.message, type: 'error' }]);
6
+ }