Skip to content

Commit 00309f3

Browse files
author
himaniraghav3
committed
PM-1064 Fix the role - admin
1 parent a4457e3 commit 00309f3

File tree

1 file changed

+2
-1
lines changed
  • src/apps/copilots/src/pages/copilot-opportunity-list

1 file changed

+2
-1
lines changed

src/apps/copilots/src/pages/copilot-opportunity-list/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ const CopilotOpportunityList: FC<{}> = () => {
9191
const navigate = useNavigate()
9292

9393
const { profile }: ProfileContextData = useContext(profileContext)
94+
console.log(profile)
9495
const isAdminOrPM: boolean = useMemo(
95-
() => !!profile?.roles?.some(role => role === UserRole.tcaAdmin || role === UserRole.projectManager),
96+
() => !!profile?.roles?.some(role => role === UserRole.administrator || role === UserRole.projectManager),
9697
[profile],
9798
)
9899

0 commit comments

Comments
 (0)