Commit e25f35e5 authored by zarina's avatar zarina 🌊

исправила отображение ошибок

parent 9e4212b9
......@@ -21,7 +21,10 @@ class Register extends Component {
};
getFieldError = fieldName => {
return this.props.error && this.props.error.errors && this.props.error.errors[fieldName] && this.props.error.errors[fieldName].message;
return this.props.error && this.props.error.errors &&
this.props.error.errors[fieldName] &&
this.props.error.errors[fieldName].properties &&
this.props.error.errors[fieldName].properties.message;
};
render() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment