Skip to content

Commit

Permalink
Cleanup debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
youssef-lr committed Nov 21, 2022
1 parent a3ad865 commit f495ce9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,7 @@ class Form extends React.Component {
onSubmit={this.submit}
onFixTheErrorsLinkPressed={() => {
const errors = !_.isEmpty(this.state.errors) ? this.state.errors : this.props.formState.errorFields;
console.log(errors);
const focusKey = _.find(_.keys(this.inputRefs), key => _.keys(errors).includes(key));
console.log(focusKey);
this.inputRefs[focusKey].focus();
}}
containerStyles={[styles.mh0, styles.mt5]}
Expand Down

0 comments on commit f495ce9

Please sign in to comment.