fix and update

This commit is contained in:
lendry
2026-06-30 08:58:36 +03:00
parent 40057b64c8
commit f1d6a5167f
4 changed files with 85 additions and 69 deletions

View File

@@ -56,7 +56,7 @@ function OAuthAuthorizeContent() {
const clientLabel = clientName ?? consentInfo?.client?.name ?? 'Приложение';
useEffect(() => {
if (!clientId) return;
if (!clientId || isLoading) return;
let cancelled = false;
void fetchOAuthClientPublicInfo(clientId)
.then((info) => {
@@ -68,7 +68,7 @@ function OAuthAuthorizeContent() {
return () => {
cancelled = true;
};
}, [clientId]);
}, [clientId, isLoading]);
useEffect(() => {
if (!searchParams.has('userId')) return;