Skip to content

Commit

Permalink
fixed name length defect
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenttrinh3336 committed May 1, 2024
1 parent 4aea431 commit 86226ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ <h2>List of valid Words</h2>
username = document.getElementById("username").value;
var usernameVar = username;
console.log("This is the username length");
console.log(usernameVar.length());
console.log(username.length);
if (username.trim() !== "")
{

Expand Down Expand Up @@ -640,7 +640,7 @@ <h2>List of valid Words</h2>


}
else if(usernameVar.length() > 10)
else if(username.length > 10)
{
alert("Username is too long. Names have to be 10 or less characters");
sent_status = 0;
Expand Down

0 comments on commit 86226ee

Please sign in to comment.