refactor: watcher on login form is not used anymore

This commit is contained in:
Ravinou 2025-04-21 13:55:25 +02:00
commit e4f694d383
No known key found for this signature in database
GPG key ID: EEEE670C40F6A4D7

View file

@ -19,7 +19,7 @@ type LoginForm = {
export default function Login() {
const { status } = useSession();
const { register, handleSubmit, reset, setFocus, watch } = useForm<LoginForm>();
const { register, handleSubmit, reset, setFocus } = useForm<LoginForm>();
const router = useRouter();
const toastOptions: ToastOptions = {
position: 'top-center',
@ -50,8 +50,6 @@ export default function Login() {
return;
}
const isFormComplete = watch('username') && watch('password');
//Functions
const formSubmitHandler = async (data: LoginForm) => {
start();