|
|
@@ -73,7 +73,7 @@ const InvitePage: React.FunctionComponent<Props> = ({}) => {
|
|
|
}
|
|
|
);
|
|
|
invites = response.data.filter(
|
|
|
- (i: InviteType) => !i.accepted && i.email !== "support@porter.run"
|
|
|
+ (i: InviteType) => !i.accepted && !i.email.includes("@porter.run")
|
|
|
);
|
|
|
} catch (err) {
|
|
|
console.log(err);
|
|
|
@@ -99,13 +99,13 @@ const InvitePage: React.FunctionComponent<Props> = ({}) => {
|
|
|
collaborators: Array<Collaborator>
|
|
|
): Array<InviteType> => {
|
|
|
const admins = collaborators
|
|
|
- .filter((c) => c.kind === "admin" && c.email !== "support@porter.run")
|
|
|
+ .filter((c) => c.kind === "admin" && !c.email.includes("@porter.run"))
|
|
|
.map((c) => ({ ...c, id: Number(c.id) }))
|
|
|
.sort((curr, prev) => curr.id - prev.id)
|
|
|
.slice(1);
|
|
|
|
|
|
const nonAdmins = collaborators
|
|
|
- .filter((c) => c.kind !== "admin" && c.email !== "support@porter.run")
|
|
|
+ .filter((c) => c.kind !== "admin" && !c.email.includes("@porter.run"))
|
|
|
.map((c) => ({ ...c, id: Number(c.id) }))
|
|
|
.sort((curr, prev) => curr.id - prev.id);
|
|
|
|