From 25de9c0385e12ed18923349cba75f86341dd7695 Mon Sep 17 00:00:00 2001 From: Christopher Liu Date: Sat, 30 Dec 2023 21:45:28 -0500 Subject: [PATCH] Platform is so back --- src/components/Team/Teams.tsx | 4 ++++ src/json/teams.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/components/Team/Teams.tsx b/src/components/Team/Teams.tsx index 55ae4d7c..deb8fb86 100644 --- a/src/components/Team/Teams.tsx +++ b/src/components/Team/Teams.tsx @@ -11,6 +11,10 @@ interface ITeams { const TEAM_LEAD = 'Team Lead' const leadsFirst = (members: IMember[]): IMember[] => { + if (members === null) { + return [] + } + return members.sort((m1, m2): number => { const isLead1 = m1.roles.indexOf(TEAM_LEAD) !== -1 const isLead2 = m2.roles.indexOf(TEAM_LEAD) !== -1 diff --git a/src/json/teams.json b/src/json/teams.json index e688828c..4cb39d74 100644 --- a/src/json/teams.json +++ b/src/json/teams.json @@ -18,5 +18,9 @@ { "name": "Penn Mobile", "description": "Penn Mobile is a tight-knit team of developers and designers. We can usually be found debugging constraint layouts, trying to figure out why dining hours broke again, or attempting to figure out how the hell caching works. We hope you love using our app as much as we love working on it!" + }, + { + "name": "Platform", + "description": "Yo, we're the Platform Team! We consolidate all the software that Penn Labs builds by integrating our products together and making data more accessible to developers. Our goal is to help create the Penn Labs ecosystem and to help the organization scale quickly." } ]