Skip to content

[BUG] Unsafe async clipboard handler in header.tsx has no error handling #722

Description

@adamghaleb

Description

In apps/web/src/components/header.tsx (lines 68-72), the async onClick handler for copying the SVG logo has three unhandled promise rejections:

  • fetch() can fail if the network is unavailable
  • res.text() can throw if response parsing fails
  • navigator.clipboard.writeText() can throw if clipboard access is denied

Current Behavior

Silent failure with no user feedback.

Expected Behavior

Wrap in try-catch and show toast error on failure.

Files

  • apps/web/src/components/header.tsx:68-72

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions