Skip to content

An AI-powered search engine with a generative UI

Fix issue with closing share dialog

Yoshiki Miuraa536eba72b43
diff --git a/components/chat-share.tsx b/components/chat-share.tsx
index 820561c9..31214104 100644
--- a/components/chat-share.tsx
+++ b/components/chat-share.tsx
@@ -42,6 +42,7 @@ export function ChatShare({ chatId, className }: ChatShareProps) {
const url = new URL(result.sharePath, window.location.origin)
copyToClipboard(url.toString())
toast.success('Link copied to clipboard')
+ setOpen(false)
})
}