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 navigate = useNavigate();
|
||||||
const inputRef = useRef(null);
|
const inputRef = useRef(null);
|
||||||
|
|
||||||
console.log({ errors });
|
|
||||||
|
|
||||||
const errorsMap = {
|
const errorsMap = {
|
||||||
length: "Must be at least 8 characters long",
|
length: "Must be at least 8 characters long",
|
||||||
uppercase: "Must contain at least one upper character",
|
uppercase: "Must contain at least one upper character",
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ function StepThree({ onSubmit, onBack }) {
|
|||||||
autoComplete="current-password"
|
autoComplete="current-password"
|
||||||
value={form.password}
|
value={form.password}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors.password[0]}
|
error={errors.password && errors.password[0]}
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
/>
|
/>
|
||||||
<Field
|
<Field
|
||||||
@@ -78,7 +78,7 @@ function StepThree({ onSubmit, onBack }) {
|
|||||||
autoComplete="current-password"
|
autoComplete="current-password"
|
||||||
value={form.confirm}
|
value={form.confirm}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors.confirm[0]}
|
error={errors.confirm && errors.confirm[0]}
|
||||||
/>
|
/>
|
||||||
<Stack
|
<Stack
|
||||||
gap={theme.spacing(4)}
|
gap={theme.spacing(4)}
|
||||||
|
|||||||
Reference in new issue
Block a user