Skip to content

Commit

Permalink
Adds get errorFields
Browse files Browse the repository at this point in the history
  • Loading branch information
Howie committed Apr 23, 2020
1 parent 84ffd8a commit e05176b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/components/registration-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e05176b

Please sign in to comment.