fix: guard clause

chore/team-member
Arik Chakma 1 year ago
parent 78941763e6
commit 23dfdd37e5
  1. 14
      src/components/TeamDropdown/TeamDropdown.tsx

@ -76,13 +76,13 @@ export function TeamDropdown() {
.filter((team) => team.status === 'invited')
.map((team) => team._id);
// if (
// !user?.email.endsWith('@insightpartners.com') &&
// !user?.email.endsWith('@roadmap.sh') &&
// !['arikchangma@gmail.com', 'kamranahmed.se@gmail.com', 'stephen.chetcuti@gmail.com'].includes(user?.email!)
// ) {
// return null;
// }
if (
!user?.email.endsWith('@insightpartners.com') &&
!user?.email.endsWith('@roadmap.sh') &&
!['arikchangma@gmail.com', 'kamranahmed.se@gmail.com', 'stephen.chetcuti@gmail.com'].includes(user?.email!)
) {
return null;
}
return (
<div className="relative mr-2">

Loading…
Cancel
Save