From b71cc82a0ef9def80ad6615187666ab711de95d4 Mon Sep 17 00:00:00 2001 From: Mihai C <34626017+mihaic195@users.noreply.github.com> Date: Thu, 1 Jul 2021 12:30:20 +0300 Subject: [PATCH] Update pages/settings/teams.tsx Co-authored-by: Bailey Pumfleet --- pages/settings/teams.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/settings/teams.tsx b/pages/settings/teams.tsx index 36b57984..b0df7e31 100644 --- a/pages/settings/teams.tsx +++ b/pages/settings/teams.tsx @@ -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")); })