From 52a65fcd5aecfb94499bc271abe54ce986b3c63c Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Fri, 20 Mar 2026 11:07:14 +0800 Subject: [PATCH] Update web/app/account/oauth/authorize/page.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- web/app/account/oauth/authorize/page.tsx | 2 ++ 1 file changed, 2 insertions(+) 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)