Skip to content

Commit

Permalink
Update usertables.js
Browse files Browse the repository at this point in the history
  • Loading branch information
camillereaves authored Sep 25, 2023
1 parent f698a7b commit c7a9734
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/usertables.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ document.addEventListener("DOMContentLoaded", async function () {
const q = query(users, where('username', '==', username));
const getUsers = await getDocs(q).then((querySnapshot) => {
const tempDoc = [];
tempDoc.push({ id: doc.id, ...doc.data() });
querySnapshot.forEach((doc) => {
tempDoc.push({ id: doc.id, ...doc.data() });
});
userData = tempDoc;
})
console.log(userData);
Expand Down

0 comments on commit c7a9734

Please sign in to comment.