feat: onsubmit is updated (#1628)

This commit is contained in:
Palash Gupta 2022-10-11 19:38:22 +05:30 committed by GitHub
parent fce4496214
commit 57f4f098f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,6 +117,12 @@ function Login({
try {
event.preventDefault();
event.persist();
if (!precheckComplete) {
onNextHandler();
return;
}
setIsLoading(true);
const response = await loginApi({
@ -171,6 +177,7 @@ function Login({
};
const { sso, canSelfRegister } = precheckResult;
return (
<FormWrapper>
<FormContainer onSubmit={onSubmitHandler}>