Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: correctly copy user email to clipboard

Scott Wilson4bf16f68fcd0
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");
}}
>