diff --git a/apps/www/components/block-viewer.tsx b/apps/www/components/block-viewer.tsx index 9fcf2fc752e..801f7248158 100644 --- a/apps/www/components/block-viewer.tsx +++ b/apps/www/components/block-viewer.tsx @@ -166,7 +166,7 @@ function BlockViewerToolbar() { className="hidden h-7 w-7 rounded-md border bg-transparent shadow-none md:flex lg:w-auto" size="sm" onClick={() => { - copyToClipboard(`npx shadcn@latest add ${name}`) + copyToClipboard(`npx shadcn@latest add ${item.name}`) }} > {isCopied ? : }