diff --git a/packages/core/src/App/Components/Elements/LiveChat/live-chat.tsx b/packages/core/src/App/Components/Elements/LiveChat/live-chat.tsx index fc486fadabb1..faa7d455bc5a 100644 --- a/packages/core/src/App/Components/Elements/LiveChat/live-chat.tsx +++ b/packages/core/src/App/Components/Elements/LiveChat/live-chat.tsx @@ -23,7 +23,9 @@ const LiveChat = observer(({ showPopover }: { showPopover?: boolean }) => { // We will add a refactor after this setInterval(() => { if (fcAvailable || icAvailable) { - window.LiveChatWidget?.call('destroy'); + if (window.LiveChatWidget && typeof window.LiveChatWidget.call === 'function') { + window.LiveChatWidget.call('destroy'); + } } }, 10);