diff --git a/components/molecules/LoginForm.tsx b/components/molecules/LoginForm.tsx index 17e7628..781e4f2 100644 --- a/components/molecules/LoginForm.tsx +++ b/components/molecules/LoginForm.tsx @@ -8,7 +8,7 @@ import { useGlobals } from "../../utils/globals"; import { useDevice } from "../../context/device"; export const LoginForm: React.FC = () => { - const { register, handleSubmit, watch, formState: { isSubmitting } } = useForm(); + const { register, handleSubmit, watch, formState } = useForm(); const [isInputActive, setIsInputActive] = useState(false); const passwordInput = watch("password"); @@ -68,28 +68,32 @@ export const LoginForm: React.FC = () => {
- + {!formState.isSubmitting && ( + + )} + {formState.isSubmitting && ( + + )}