From f801958b918ad4c4ca840185e87a5dba01fcaba8 Mon Sep 17 00:00:00 2001 From: BFlat Date: Tue, 19 Jul 2022 15:45:03 +0100 Subject: [PATCH] copy function update --- .../src/v2/view/profile/profile_view/ProfileFc.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/fakeyou/src/v2/view/profile/profile_view/ProfileFc.tsx b/packages/fakeyou/src/v2/view/profile/profile_view/ProfileFc.tsx index 41429a11d7..55dac9d5bf 100644 --- a/packages/fakeyou/src/v2/view/profile/profile_view/ProfileFc.tsx +++ b/packages/fakeyou/src/v2/view/profile/profile_view/ProfileFc.tsx @@ -44,9 +44,9 @@ interface Props { sessionWrapper: SessionWrapper; } -function copyToClipboard(username: string): void { +function copyToClipboard(username: string): any { navigator.clipboard.writeText(username); - alert("Copied the text: " + username); + // alert("Copied the text: " + username); } function ProfileFc(props: Props) { @@ -192,7 +192,6 @@ function ProfileFc(props: Props) { profileRows.push(
{twitterLink}
); } - if (userData.discord_username) { profileRows.push( } > - + - + ); }