From 4bf16f68fcd0525289aee4d18a1cfe60f80135a6 Mon Sep 17 00:00:00 2001 From: Scott Wilson Date: Mon, 13 Jan 2025 17:03:08 -0800 Subject: [PATCH] fix: correctly copy user email to clipboard --- .../UserDetailsByIDPage/components/UserDetailsSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx index 223340ea4f..cd430deddb 100644 --- a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx +++ b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx @@ -133,7 +133,7 @@ export const UserDetailsSection = ({ membershipId, handlePopUpOpen }: Props) => variant="plain" className="group relative ml-2" onClick={() => { - navigator.clipboard.writeText(""); + navigator.clipboard.writeText(membership.user.username); setCopyTextUsername("Copied"); }} >