diff --git a/apps/frontend/src/renderer/components/onboarding/OAuthStep.tsx b/apps/frontend/src/renderer/components/onboarding/OAuthStep.tsx index f23b93a90d..df3970d7c9 100644 --- a/apps/frontend/src/renderer/components/onboarding/OAuthStep.tsx +++ b/apps/frontend/src/renderer/components/onboarding/OAuthStep.tsx @@ -79,7 +79,7 @@ export function OAuthStep({ onNext, onBack, onSkip }: OAuthStepProps) { ); // Reusable function to load Claude profiles - const loadClaudeProfiles = async () => { + const loadClaudeProfiles = useCallback(async () => { setIsLoadingProfiles(true); setError(null); try { @@ -95,7 +95,7 @@ export function OAuthStep({ onNext, onBack, onSkip }: OAuthStepProps) { } finally { setIsLoadingProfiles(false); } - }; + }, []); // Load Claude profiles on mount useEffect(() => { @@ -231,7 +231,7 @@ export function OAuthStep({ onNext, onBack, onSkip }: OAuthStepProps) { // Handle auth terminal success const handleAuthTerminalSuccess = useCallback(async (email?: string) => { - console.warn('[OAuthStep] Auth success:', email); + console.warn('[OAuthStep] Auth success'); // Close terminal immediately setAuthTerminal(null);