From 17d477bf0fd7f8a4e6bce0f5ad710d57dcfc45fc Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Wed, 2 Apr 2025 13:25:33 -0400 Subject: [PATCH] fix: join copied commands without a space --- app/components/Code.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/components/Code.tsx b/app/components/Code.tsx index b57bd1d..6b64ce4 100644 --- a/app/components/Code.tsx +++ b/app/components/Code.tsx @@ -24,9 +24,7 @@ export default function Code({ isCopyable, children, className }: CodeProps) { type="button" className="bottom-0 right-0 absolute" onClick={async (event) => { - const text = Array.isArray(children) - ? children.join(' ') - : children; + const text = Array.isArray(children) ? children.join('') : children; const svgs = event.currentTarget.querySelectorAll('svg'); for (const svg of svgs) {