diff --git a/extensions/react-widget/src/components/DocsGPTWidget.tsx b/extensions/react-widget/src/components/DocsGPTWidget.tsx index e3cf7224..c74d658f 100644 --- a/extensions/react-widget/src/components/DocsGPTWidget.tsx +++ b/extensions/react-widget/src/components/DocsGPTWidget.tsx @@ -577,7 +577,7 @@ export const DocsGPTWidget = ({ setTimeout(() => setIsAnimatingButton(false), 200); }, 250) : - widgetRef.current && (widgetRef.current.style.display = "none") + widgetRef.current && (widgetRef.current.style.display = "none") && setIsFloatingButtonVisible(true); }; const handleOpen = () => { setOpen(true);