LFFE-30 complete auto submit form in login and register
This commit is contained in:
@@ -4,7 +4,7 @@ import {useEffect} from "react";
|
||||
const AutoSubmit = () => {
|
||||
const {values, submitForm} = useFormikContext()
|
||||
useEffect(() => {
|
||||
if (values.verification_code.toString().length === 6) {
|
||||
if (values.verification_code.length === 6) {
|
||||
submitForm();
|
||||
}
|
||||
}, [values, submitForm]);
|
||||
|
||||
Reference in New Issue
Block a user