From 5568558b50f659ed849d06d89e0bbdcd555bd704 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Wed, 25 Mar 2026 12:35:59 -0700 Subject: [PATCH] Copy only string error toast descriptions - Restrict the error copy button to string descriptions - Avoid passing non-string toast content into the clipboard action --- apps/web/src/components/ui/toast.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/ui/toast.tsx b/apps/web/src/components/ui/toast.tsx index 25b6d83dea..7726b1ea9f 100644 --- a/apps/web/src/components/ui/toast.tsx +++ b/apps/web/src/components/ui/toast.tsx @@ -311,7 +311,7 @@ function Toasts({ position = "top-right" }: { position: ToastPosition }) { className="min-w-0 break-words font-medium" data-slot="toast-title" /> - {toast.type === "error" && toast.description && ( + {toast.type === "error" && typeof toast.description === "string" && ( )}