diff --git a/app/scenes/Login/OAuthAuthorize.tsx b/app/scenes/Login/OAuthAuthorize.tsx index d916f9a923..07556aaab6 100644 --- a/app/scenes/Login/OAuthAuthorize.tsx +++ b/app/scenes/Login/OAuthAuthorize.tsx @@ -76,7 +76,7 @@ function inputScopes(scope?: string): string[] { * and allows the user to either authorize or cancel the request. */ function Authorize() { - const team = useCurrentTeam(); + const team = useCurrentTeam({ rejectOnEmpty: false }); const params = useQuery(); const { t } = useTranslation(); const [isSubmitting, setIsSubmitting] = useState(false); @@ -133,7 +133,7 @@ function Authorize() { !state && "state", ].filter(Boolean); - if (missingParams.length || clientError) { + if (missingParams.length || clientError || !team) { return (