Skip to content

Commit

Permalink
fix: copy link
Browse files Browse the repository at this point in the history
  • Loading branch information
Chang Liu committed Jan 23, 2025
1 parent 97a0758 commit d16b961
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/components/CopyLinkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import Tooltip from './Tooltip'

export default function CopyLinkButton({profile}: {profile: Profile}) {
const handleCopy = () => {
window.navigator.clipboard.writeText(META.domain.prod + profile.user_name)
window.navigator.clipboard.writeText(
META.domain.prod + 'user/' + profile.user_name
)
toast.success('Link copied to clipboard')
track('Copy link')
}
Expand Down

0 comments on commit d16b961

Please sign in to comment.