Update pages/settings/teams.tsx

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
pull/333/head
Mihai C 2021-07-01 12:30:20 +03:00 committed by GitHub
parent 769f36f8d5
commit b71cc82a0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export default function Teams() {
const loadData = () => {
fetch("/api/user/membership")
.then(handleErrors)
.then((data) => {
.then((data) => {
setTeams(data.membership.filter((m) => m.role !== "INVITEE"));
setInvites(data.membership.filter((m) => m.role === "INVITEE"));
})