Skip to content

Commit

Permalink
Update sprout.js
Browse files Browse the repository at this point in the history
  • Loading branch information
camillereaves authored Sep 23, 2023
1 parent ba1ac4c commit dea8146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/sprout.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ document.getElementById("login_form").addEventListener("submit", async function

function generateUsername(userNameExists, firstName, lastName, month, day, year){
let username = "TBD";
let userCheck = await testUserName(firstName.slice(0,1).toLowerCase() + lastName.toLowerCase() + month + year);;
let userCheck = await testUserName(firstName.slice(0,1).toLowerCase() + lastName.toLowerCase() + month + year);
let userCount = 0;
if(!userCheck){
username = String(firstName.slice(0,1).toLowerCase() + lastName.toLowerCase() + month + year);
Expand Down

0 comments on commit dea8146

Please sign in to comment.