diff --git a/frontend/public/src/components/forms/ProfileFormFields.js b/frontend/public/src/components/forms/ProfileFormFields.js index fc72fbc48a..a4217f62ce 100644 --- a/frontend/public/src/components/forms/ProfileFormFields.js +++ b/frontend/public/src/components/forms/ProfileFormFields.js @@ -172,7 +172,8 @@ const findStates = (country: string, countries: Array) => { } const renderYearOfBirthField = errors => { - const hasError = errors.user_profile && errors.user_profile.year_of_birth + const hasError = + errors && errors.user_profile && errors.user_profile.year_of_birth return (