diff --git a/src/components/common/ModalAuthenticate/components/FormRegister/FormRegister.tsx b/src/components/common/ModalAuthenticate/components/FormRegister/FormRegister.tsx index c08b9120f..e3d0a8417 100644 --- a/src/components/common/ModalAuthenticate/components/FormRegister/FormRegister.tsx +++ b/src/components/common/ModalAuthenticate/components/FormRegister/FormRegister.tsx @@ -48,7 +48,7 @@ const FormRegister = ({ onSwitch, isHide }: Props) => { const onSignupCallBack = (isSuccess: boolean, message?: string) => { if (isSuccess) { - showMessageSuccess("Create account successfully. Please verify your email to login.") + showMessageSuccess("Create account successfully. Please verify your email to login.", 15000) } else { showMessageError(message || LANGUAGE.MESSAGE.ERROR) } @@ -71,7 +71,7 @@ const FormRegister = ({ onSwitch, isHide }: Props) => { validationSchema={DisplayingErrorMessagesSchema} onSubmit={onSignup} > - {({ errors, touched }) => ( + {({ errors, touched, isValid, submitForm }) => (