Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #151 from cfpb/all-fis
Browse files Browse the repository at this point in the history
only call when we have a domain
  • Loading branch information
wpears authored Aug 18, 2017
2 parents 17995ef + fc1b2fa commit d0fccd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions keycloak/themes/hmda/login/register.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ $(document).ready(function() {
} else {
// e.keyCode will be 'undefined' on tab key
// don't make the API call on tab keyup
if((emailExp.test(email.val()) && e.keyCode) || e.type === 'blur') {
debounceRequest(emailToDomain(email.val().trim()))
var domain = emailToDomain(email.val().trim())
if((emailExp.test(email.val()) && e.keyCode) || e.type === 'blur' && domain !== '') {
debounceRequest(domain)
}
}
});
Expand Down

0 comments on commit d0fccd9

Please sign in to comment.