Commit 73688f6
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 command0 file changed
0 commit comments