Minor changes

This commit is contained in:
2025-06-05 09:24:39 -05:00
parent 3e0c23054a
commit a776c5a30a
2 changed files with 4 additions and 8 deletions

View File

@ -2,13 +2,11 @@
import { signInWithMicrosoft } from '@/lib/actions';
import { StatusMessage, SubmitButton } from '@/components/default';
import { useAuth } from '@/components/context/auth';
import { useRouter } from 'next/navigation';
import { useState } from 'react';
import Image from 'next/image';
export const SignInWithMicrosoft = () => {
const router = useRouter();
const { isLoading, refreshUserData } = useAuth();
const { isLoading } = useAuth();
const [statusMessage, setStatusMessage] = useState('');
const [isSigningIn, setIsSigningIn] = useState(false);
@ -30,10 +28,6 @@ export const SignInWithMicrosoft = () => {
setStatusMessage(
`Error: ${error instanceof Error ? error.message : 'Could not sign in!'}`
);
} finally {
setIsSigningIn(false);
await refreshUserData();
router.push('');
}
};