remove unnecessary guard

pull/333/head
mihaic195 2021-06-30 16:52:18 +03:00
parent e10030e18b
commit 8b00475b27
No known key found for this signature in database
GPG Key ID: 18E6B791693DB416
1 changed files with 2 additions and 2 deletions

View File

@ -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"));
}
);