Skip to content

Fix undeclared copyTimeout variable in web profile page #428

@Pcmhacker-piro

Description

@Pcmhacker-piro

Summary

Fix ReferenceError caused by an undeclared copyTimeout variable in the web profile page, which breaks the copy-to-clipboard feature.

Contexts

In apps/web/src/routes/u/[username]/+page.svelte, clearTimeout(copyTimeout) is called but copyTimeout is never declared with let/const. This throws a ReferenceError when the copy/share button is clicked, preventing the copy feature from working.

Tasks

  • Declare let copyTimeout at the component script top level
  • Clear the timeout in onDestroy to prevent memory leaks
  • Verify no TypeScript or lint errors

Acceptance Criteria

  • Copy button works without console errors
  • No lint/type errors from pnpm lint
  • Timeout is cleaned up on component destroy

Area

web

Difficulty

Easy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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