Skip to content

Commit 73688f6

Browse files
authored
fix: add typeof string type guard for toast description in anchored toast
The floating toast correctly guarded with typeof toast.description === 'string' before passing to CopyErrorButton, but the anchored toast only checked truthiness. This could pass non-string values (e.g. React nodes) to clipboard.writeText(). Applied via @cursor push command
2 parents e68526f + 30497a8 commit 73688f6

0 file changed

File tree

    0 commit comments

    Comments
     (0)