diff --git a/src/komponenter/footer/chatbot/ChatbotWrapper.tsx b/src/komponenter/footer/chatbot/ChatbotWrapper.tsx index aad879a36..0acdffd9f 100644 --- a/src/komponenter/footer/chatbot/ChatbotWrapper.tsx +++ b/src/komponenter/footer/chatbot/ChatbotWrapper.tsx @@ -136,6 +136,9 @@ export const ChatbotWrapper = () => { boost.chatPanel.setFilterValues(ev.detail.filterValue); if (ev.detail.nextId) boost.chatPanel.triggerAction(ev.detail.nextId); }); + boost.chatPanel.addEventListener('chatPanelClosed', () => { + removeCookie(conversationCookieName); + }); if (bufferLoad) { setBufferLoad(false);