Skip to content

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

Fix frontend lint issues

Tuan Danga04a9a1bd386
diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx
index 8957f6d914..7dd017e5e1 100644
--- a/frontend/src/layouts/AppLayout/AppLayout.tsx
+++ b/frontend/src/layouts/AppLayout/AppLayout.tsx
@@ -234,8 +234,8 @@ export const AppLayout = ({ children }: LayoutProps) => {
await addUsersToProject.mutateAsync({
emails: orgUsers
- .map((member) => member.user.email)
- .filter((email) => email !== user.email),
+ .map((member) => member.user.username)
+ .filter((username) => username !== user.username),
projectId: newProjectId
});
}
diff --git a/frontend/src/pages/org/[id]/overview/index.tsx b/frontend/src/pages/org/[id]/overview/index.tsx
index 8a703b3dcc..152e6d6f63 100644
--- a/frontend/src/pages/org/[id]/overview/index.tsx
+++ b/frontend/src/pages/org/[id]/overview/index.tsx
@@ -514,8 +514,8 @@ const OrganizationPage = withPermission(
await addUsersToProject.mutateAsync({
emails: orgUsers
- .map((member) => member.user.email)
- .filter((email) => email !== user.email),
+ .map((member) => member.user.username)
+ .filter((username) => username !== user.username),
projectId: newProjectId
});
}