Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
fix: update CopyButton onClick to ensure value is converted to string…
Browse files Browse the repository at this point in the history
… for consistent copy functionality
  • Loading branch information
BramSuurdje committed Oct 10, 2024
1 parent 859032c commit 4b4c22c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/scripts/_components/ScriptItems/InterFaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const CopyButton = ({ label, value }: { label: string; value: string | number })
<Button
variant="secondary"
size="sm"
onClick={() => handleCopy(label, value)}
onClick={() => handleCopy(label, String(value))}
>
{value}
</Button>
Expand Down

0 comments on commit 4b4c22c

Please sign in to comment.