From 1e48c91cdd00f72c14d3e5b7fbcee500d1c83f57 Mon Sep 17 00:00:00 2001 From: Caio Cabral Date: Thu, 31 Oct 2024 15:16:11 -0400 Subject: [PATCH] chore dleting consoles --- Client/src/Pages/Auth/Login.jsx | 2 -- Client/src/Pages/Auth/Register/StepThree/index.jsx | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Client/src/Pages/Auth/Login.jsx b/Client/src/Pages/Auth/Login.jsx index 687abb7e6..7afefda84 100644 --- a/Client/src/Pages/Auth/Login.jsx +++ b/Client/src/Pages/Auth/Login.jsx @@ -216,8 +216,6 @@ const StepTwo = ({ form, errors, onSubmit, onChange, onBack }) => { const navigate = useNavigate(); const inputRef = useRef(null); - console.log({ errors }); - const errorsMap = { length: "Must be at least 8 characters long", uppercase: "Must contain at least one upper character", diff --git a/Client/src/Pages/Auth/Register/StepThree/index.jsx b/Client/src/Pages/Auth/Register/StepThree/index.jsx index 90825f1f7..fb72969f0 100644 --- a/Client/src/Pages/Auth/Register/StepThree/index.jsx +++ b/Client/src/Pages/Auth/Register/StepThree/index.jsx @@ -65,7 +65,7 @@ function StepThree({ onSubmit, onBack }) { autoComplete="current-password" value={form.password} onChange={handleChange} - error={errors.password[0]} + error={errors.password && errors.password[0]} ref={inputRef} />