File tree 1 file changed +9
-6
lines changed
client/src/components/chatApp
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import {
30
30
import "./Component.css" ;
31
31
import { ChatModal } from "./Modal.jsx" ;
32
32
import { processApiRequest } from "./ApiRequest.js" ;
33
+ import { ErrorBoundary } from "./errorBoundary.jsx" ;
33
34
34
35
function ChatApp ( props ) {
35
36
const fileInputRef = useRef ( null ) ;
@@ -227,12 +228,14 @@ function ChatApp(props) {
227
228
return (
228
229
< div className = "chat-app" >
229
230
< MainContainer style = { MainContainerStyle } >
230
- < ChatModal
231
- isModalOpen = { isModalOpen }
232
- title = { modalTitle }
233
- message = { modalMessage }
234
- onCloseClick = { closeChatModal }
235
- />
231
+ < ErrorBoundary >
232
+ < ChatModal
233
+ isModalOpen = { isModalOpen }
234
+ title = { modalTitle }
235
+ message = { modalMessage }
236
+ onCloseClick = { closeChatModal }
237
+ />
238
+ </ ErrorBoundary >
236
239
< ChatContainer style = { transparentBackgroundStyle } >
237
240
< ConversationHeader >
238
241
< Avatar src = { avatar_url } name = { app_name } />
You can’t perform that action at this time.
0 commit comments