Skip to content

Commit be354e8

Browse files
author
himaniraghav3
committed
Rename var to simpler term
1 parent 8df2396 commit be354e8

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const CopilotOpportunityList: FC<{}> = () => {
9191
const navigate = useNavigate()
9292

9393
const { profile }: ProfileContextData = useContext(profileContext)
94-
const canViewRequestCopilotButton: boolean = useMemo(() => !!profile?.roles?.includes(UserRole.tcaAdmin), [profile])
94+
const isAdmin: boolean = useMemo(() => !!profile?.roles?.includes(UserRole.tcaAdmin), [profile])
9595

9696
const {
9797
data: opportunities, isValidating, size, setSize,
@@ -120,7 +120,7 @@ const CopilotOpportunityList: FC<{}> = () => {
120120
return (
121121
<ContentLayout
122122
title='Copilot Opportunities'
123-
buttonConfig={canViewRequestCopilotButton ? addNewRequestButton : undefined}
123+
buttonConfig={isAdmin ? addNewRequestButton : undefined}
124124
>
125125
<PageTitle>Copilot Opportunities</PageTitle>
126126
<Table

0 commit comments

Comments
 (0)