From 7164e728ed2e5c72b9be3c034d0b60dade85449e Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 4 Jul 2024 15:54:11 -0700 Subject: [PATCH] fix invite link sign up --- .../src/components/user_dashboard.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ui/litellm-dashboard/src/components/user_dashboard.tsx b/ui/litellm-dashboard/src/components/user_dashboard.tsx index 2d2fb0dc1e..fdddcaad62 100644 --- a/ui/litellm-dashboard/src/components/user_dashboard.tsx +++ b/ui/litellm-dashboard/src/components/user_dashboard.tsx @@ -259,14 +259,15 @@ const UserDashboard: React.FC = ({ } }, [selectedTeam]); + + if (invitation_id != null) { + return ( + + ) + } + if (userID == null || token == null) { // user is not logged in as yet - if (invitation_id != null) { - return ( - - - ) - } const url = proxyBaseUrl ? `${proxyBaseUrl}/sso/key/generate` : `/sso/key/generate`;