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) {