diff --git a/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/ChatNotification/components/NotificationDisplayer/NotificationDisplayer.tsx b/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/ChatNotification/components/NotificationDisplayer/NotificationDisplayer.tsx index ae662ec44d76..3d901e2b467e 100644 --- a/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/ChatNotification/components/NotificationDisplayer/NotificationDisplayer.tsx +++ b/frontend/app/chat/[chatId]/components/ChatDialogueArea/components/ChatDialogue/components/ChatNotification/components/NotificationDisplayer/NotificationDisplayer.tsx @@ -20,9 +20,19 @@ export const NotificationDisplayer = ({ return ; } - const { message, status, name } = JSON.parse( - nonParsedMessage.replace(/'/g, '"') - ) as NotificationMessage; + let message, status, name; + + try { + const parsedMessage = JSON.parse( + nonParsedMessage.replace(/'/g, '"') + ) as NotificationMessage; + + message = parsedMessage.message; + status = parsedMessage.status; + name = parsedMessage.name; + } catch (error) { + return ; + } return (
{isHovered && ( -
{message}