We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4457e3 commit 00309f3Copy full SHA for 00309f3
src/apps/copilots/src/pages/copilot-opportunity-list/index.tsx
@@ -91,8 +91,9 @@ const CopilotOpportunityList: FC<{}> = () => {
91
const navigate = useNavigate()
92
93
const { profile }: ProfileContextData = useContext(profileContext)
94
+ console.log(profile)
95
const isAdminOrPM: boolean = useMemo(
- () => !!profile?.roles?.some(role => role === UserRole.tcaAdmin || role === UserRole.projectManager),
96
+ () => !!profile?.roles?.some(role => role === UserRole.administrator || role === UserRole.projectManager),
97
[profile],
98
)
99
0 commit comments