fixing the bug of all the crap of promises but i think i got it...it was map that didn't skip elements

This commit is contained in:
Arjun Patel
2022-01-15 18:19:29 -08:00
parent eb6d771f68
commit f0bf26b6e0
2 changed files with 46 additions and 7 deletions
+6 -1
View File
@@ -44,7 +44,12 @@ export default function Header() {
try {
// get all the teams that this user is part of
const newTeams: Team[] =
await teamService.getActiveOrInvitedTeamsbyUser(currUser.uid);
await teamService.getActiveOrInvitedTeamsbyUser(
currUser.uid,
currUser.email
);
console.log(newTeams);
setUserTeams(newTeams);
} catch (error) {