From 7aecde062de5eeaabeb281e1e8dcec99c598010e Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Tue, 25 Jul 2023 18:36:48 +0600 Subject: [PATCH] fix: team guard --- src/components/TeamDropdown/TeamDropdown.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/TeamDropdown/TeamDropdown.tsx b/src/components/TeamDropdown/TeamDropdown.tsx index fe4fd3e78..a4124ef7d 100644 --- a/src/components/TeamDropdown/TeamDropdown.tsx +++ b/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 (