From e68526fc19cd57228c902123144d5c7fc39479f4 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Wed, 25 Mar 2026 12:38:59 -0700 Subject: [PATCH] Copy only string git errors in error toasts - Restrict the copy-error action to string descriptions - Avoid passing non-string toast descriptions to the clipboard --- 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 7726b1ea9f..a55e36c195 100644 --- a/apps/web/src/components/ui/toast.tsx +++ b/apps/web/src/components/ui/toast.tsx @@ -405,7 +405,7 @@ function AnchoredToasts() { className="min-w-0 break-words font-medium" data-slot="toast-title" /> - {toast.type === "error" && toast.description && ( + {toast.type === "error" && typeof toast.description === "string" && ( )}