diff --git a/apps/web/src/components/admin/users/ServerSections.tsx b/apps/web/src/components/admin/users/ServerSections.tsx index 28b4c50f..02ccc668 100644 --- a/apps/web/src/components/admin/users/ServerSections.tsx +++ b/apps/web/src/components/admin/users/ServerSections.tsx @@ -57,26 +57,21 @@ export function ProfileInfo({ user }: { user: UserWithAllData }) { } export async function AccountInfo({ user }: { user: UserWithAllData }) { - const clerkUser = await clerkClient.users.getUser(user.clerkID); - if (!clerkUser) return null; - - // const signInMethods = clerkUser.externalAccounts.map((account) => - // titleCase(account.provider.split("_").slice(-1)[0]) - // ); - - // if (clerkUser.passwordEnabled) { - // signInMethods.push("Password"); - // } + const clerkUser = await clerkClient.users.getUser(user.clerkID).catch(() => {}); return (
- - - {/* 1 ? "s" : ""}`} - value={signInMethods.join(", ")} - /> */} + { clerkUser ? + <> + + + + : +
+ Failed to find Clerk authentication data. +
+ }
);