diff --git a/src/app/modules/auth/components/Login.tsx b/src/app/modules/auth/components/Login.tsx index ff2e053..1d07f09 100644 --- a/src/app/modules/auth/components/Login.tsx +++ b/src/app/modules/auth/components/Login.tsx @@ -49,18 +49,20 @@ export function Login() { setStatus('The login details are incorrect') setSubmitting(false) setLoading(false) - console.log(auth) //remove later return } saveAuth(auth) setCurrentUser(auth.profile) - console.log(auth) //remove later } catch (error) { console.error(error) saveAuth(undefined) setStatus('The login details are incorrect') setSubmitting(false) setLoading(false) + } finally { + setTimeout(()=>{ + setStatus('') + }, 5000) } }, }) @@ -130,14 +132,6 @@ export function Login() { {/* end::Separator */} - {formik.status ? ( -