diff --git a/app/components/registration-form.js b/app/components/registration-form.js index e195cf1..e22f217 100644 --- a/app/components/registration-form.js +++ b/app/components/registration-form.js @@ -12,6 +12,12 @@ export default class RegistrationFormComponent extends Component { this.formSchema = RegistrationSchema; } + get errorFields() { + if (this.formErrors && this.formErrors.length) { + return this.formErrors.map((error) => error.path); + } + } + @action async handleSubmit(evt) { evt.preventDefault();