fix(chat): fix clipboard writeText rejection handler - remove undefined message.error call

This commit is contained in:
Ishaan Jaffer 2026-03-05 18:41:22 -08:00
parent 5c0dc19455
commit ec7f8d009c

View file

@ -333,7 +333,7 @@ function CopyButton({ text }: { text: string }) {
setCopied(true);
setTimeout(() => setCopied(false), 2000);
}).catch(() => {
message.error("Failed to copy to clipboard");
// clipboard not available (non-HTTPS or permission denied) — silently no-op
});
};