Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit 1a8286b

Browse files
Dgiulianjustinwray
authored andcommitted
Update index.js (#568)
There was an typo in the verifyTeamName function, it was using teamname as the name of the input, and should be team_name
1 parent da4d8d1 commit 1a8286b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/static/js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var $ = require('jquery');
22

33
function teamNameFormError() {
44
$('.el--text')[0].classList.add('form-error');
5-
$('.fb-form input[name="teamname"]').on('change', function() {
5+
$('.fb-form input[name="team_name"]').on('change', function() {
66
$('.el--text')[0].classList.remove('form-error');
77
});
88
}
@@ -43,7 +43,7 @@ function teamLogoFormError() {
4343

4444
function verifyTeamName(context) {
4545
if (context === 'register') {
46-
var teamName = String($('.fb-form input[name="teamname"]')[0].value);
46+
var teamName = String($('.fb-form input[name="team_name"]')[0].value);
4747
if (teamName.length === 0) {
4848
teamNameFormError();
4949
return false;

0 commit comments

Comments
 (0)