Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

211
Views
Redux form error in react is automatically getting undefined

Error of the redux form are getting undefined like this enter image description here

first it has some value and then it gets undefined ""these console logs are of onetime I didn't make any change ""

here is the code of the validate function

const validate = (values) => {
    const errors = {};
    if (!values.password) {
        errors.password = " pass Required";
    }
    if (!values.email) {
        errors.email = "email required";
    }
    if (!values.full_name) {
        errors.full_name = "name required";
    }
    return errors;
};

export default reduxForm({
    form: "singupform",
    validate,
})(SignUpPage);

field render function

const inputFieldRender = ({
        input,
        meta: { error, touched, warning },
        className,
        placeholder,
    }) => {
        let newclasses = className;
        console.log(error);
        if (touched && error) {
            newclasses = className + " bg-red-100";
        }

        return (
            <>
                <input
                    {...input}
                    className={newclasses}
                    placeholder={placeholder}
                />
            </>
        );
    };

this is how field looks

<Field
                                    id="email-address"
                                    type="email"
                                    placeholder="Email Id"
                                    name="email"
                                    className="appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-t-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
                                    component={inputFieldRender}
                                    required={true}
                                />
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!