diff --git a/src/register/RegistrationFailure.jsx b/src/register/RegistrationFailure.jsx index 8bf7720b..59b22a1c 100644 --- a/src/register/RegistrationFailure.jsx +++ b/src/register/RegistrationFailure.jsx @@ -28,8 +28,9 @@ const RegistrationFailureMessage = (props) => { userErrors.push(serverError); break; - default: - Object.keys(errorMessage).forEach((key) => { + default: + Object.keys(errorMessage).forEach((key) => { + if (key !== 'error_code') { const errors = errorMessage[key]; const suppressionClass = ['email', 'username'].includes(key) ? 'data-hj-suppress' : ''; const errorList = errors.map((error) => ( @@ -40,7 +41,8 @@ const RegistrationFailureMessage = (props) => { ) : null )); userErrors.push(errorList); - }); + } + }); } return (