Skip to content

Commit 5b80978

Browse files
committed
cleanup
1 parent f5ef6af commit 5b80978

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/clerk-js/src/ui/elements/LineItems.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function Description({ text, prefix, suffix, truncateText = false, copyText = fa
224224
}
225225

226226
function CopyButton({ text, copyLabel = 'Copy' }: { text: string; copyLabel?: string }) {
227-
const { onCopy, hasCopied } = useClipboard(text || '');
227+
const { onCopy, hasCopied } = useClipboard(text);
228228

229229
return (
230230
<Button
@@ -247,6 +247,7 @@ function CopyButton({ text, copyLabel = 'Copy' }: { text: string; copyLabel?: st
247247
<Icon
248248
size='sm'
249249
icon={hasCopied ? Check : Copy}
250+
aria-hidden
250251
/>
251252
</Button>
252253
);

0 commit comments

Comments
 (0)