Skip to content

Commit

Permalink
Merge pull request #1030 from auth0/fix-invalidHint-email
Browse files Browse the repository at this point in the history
Fixing tooltip error in the email pane
  • Loading branch information
hzalaz authored Jun 14, 2017
2 parents e133d78 + 1571293 commit a92fcdd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/field/email/email_pane.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ export default class EmailPane extends React.Component {
const field = c.getField(lock, 'email');
const value = field.get('value', '');
const valid = field.get('valid', true);
const invalidHint = field.get(
'invalidHint',
i18n.str(value ? 'invalidErrorHint' : 'blankErrorHint')
);
const invalidHint =
field.get('invalidHint') || i18n.str(value ? 'invalidErrorHint' : 'blankErrorHint');

const isValid = (!forceInvalidVisibility || valid) && !c.isFieldVisiblyInvalid(lock, 'email');

Expand Down

0 comments on commit a92fcdd

Please sign in to comment.