chore dleting consoles
This commit is contained in:
1 parent
b0c66b0a1d
commit
1e48c91cdd
2 files changed
+2
-4
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
<Field
|
||||
@@ -78,7 +78,7 @@ function StepThree({ onSubmit, onBack }) {
|
||||
autoComplete="current-password"
|
||||
value={form.confirm}
|
||||
onChange={handleChange}
|
||||
error={errors.confirm[0]}
|
||||
error={errors.confirm && errors.confirm[0]}
|
||||
/>
|
||||
<Stack
|
||||
gap={theme.spacing(4)}
|
||||
|
||||
Reference in new issue
Block a user