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 bce840e commit db2f838
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/sprout.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ async function testUserEmail(testEmail){
async function testUserName(testUsername){
testUsername = testUsername.toString();
const docRef = doc(db, 'new_user_requests', testUsername);
const docCheck = (await getDoc(docRef)).docs.length;
console.log("docCheck = ");
if (docCheck > 0){
const docCheck = await getDoc(docRef);
console.log("docCheck = "+ docCheck);
if (docCheck.exists){
return true;
} else{
return false;
Expand Down

0 comments on commit db2f838

Please sign in to comment.