diff --git a/pages/login.tsx b/pages/login.tsx index 41f671e..49c7764 100644 --- a/pages/login.tsx +++ b/pages/login.tsx @@ -19,7 +19,7 @@ type LoginForm = { export default function Login() { const { status } = useSession(); - const { register, handleSubmit, reset, setFocus, watch } = useForm(); + const { register, handleSubmit, reset, setFocus } = useForm(); 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();