Skip to content

Handle clipboard failures in the SocialInteractions share button #1041

Description

@RUKAYAT-CODER

Overview
src/components/social/SocialInteractions.tsx (lines 20-25) awaits navigator.clipboard.writeText in handleShare without a try/catch, so in an insecure context or when clipboard permission is denied the promise rejects unhandled and the 'Copied!' confirmation never appears. Wrap the copy in try/catch and surface an error state to the user.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workingfrontendNexjs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions