remove unnecessary guard
parent
e10030e18b
commit
8b00475b27
|
@ -21,8 +21,8 @@ export default function Teams(props) {
|
|||
|
||||
const loadData = () => fetch('/api/user/membership').then((res: any) => res.json()).then(
|
||||
(data) => {
|
||||
setTeams(data.membership && data.membership.filter((m) => m.role !== "INVITEE"));
|
||||
setInvites(data.membership && data.membership.filter((m) => m.role === "INVITEE"));
|
||||
setTeams(data.membership.filter((m) => m.role !== "INVITEE"));
|
||||
setInvites(data.membership.filter((m) => m.role === "INVITEE"));
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue