diff --git a/web/app/account/oauth/authorize/page.tsx b/web/app/account/oauth/authorize/page.tsx index c8b90a5a21..219a26ddeb 100644 --- a/web/app/account/oauth/authorize/page.tsx +++ b/web/app/account/oauth/authorize/page.tsx @@ -71,6 +71,8 @@ export default function OAuthAuthorize() { const isLoading = isOAuthLoading || isIsLoginLoading const isActionDisabled = !client_id || !redirect_uri || isError || isLoading || authorizing const onLoginSwitchClick = () => { + if (isLoading) + return try { const returnUrl = buildReturnUrl('/account/oauth/authorize', `?client_id=${encodeURIComponent(client_id)}&redirect_uri=${encodeURIComponent(redirect_uri)}`) setPostLoginRedirect(returnUrl)