diff --git a/client/pages/ProfilePassport.tsx b/client/pages/ProfilePassport.tsx index 4e36bb97..8455bd62 100644 --- a/client/pages/ProfilePassport.tsx +++ b/client/pages/ProfilePassport.tsx @@ -386,6 +386,18 @@ const ProfilePassport = () => { profile.username.toLowerCase())), ); + const profileUrl = profile?.username + ? `https://${profile.username}.aethex.me` + : ""; + + const copyProfileLink = () => { + if (profileUrl) { + navigator.clipboard.writeText(profileUrl); + setProfileLinkCopied(true); + setTimeout(() => setProfileLinkCopied(false), 2000); + } + }; + if (loading) { return ; }