Skip to content

Commit

Permalink
Update forgotpassword.js
Browse files Browse the repository at this point in the history
  • Loading branch information
camillereaves authored Sep 25, 2023
1 parent bb69fd2 commit b3e6533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/forgotpassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function fetchUser(username){
const userData = [];
username = username.toString();
const q = query(users, where('username', '==', username));
const getUsers = await getDocs(q).then((querySnapshot) => {
const getUsers = (await getDocs(q)).then((querySnapshot) => {
const tempDoc = [];
tempDoc.push({ id: doc.id, ...doc.data() });
userData = tempDoc;
Expand Down

0 comments on commit b3e6533

Please sign in to comment.