File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
pages/copilot-opportunity-details Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ export interface CopilotOpportunity {
22
22
startDate : Date ,
23
23
tzRestrictions : 'yes' | 'no' ,
24
24
createdAt : Date ,
25
- members : Array < number > ,
25
+ canApplyAsCopilot : boolean ,
26
26
}
Original file line number Diff line number Diff line change @@ -125,7 +125,6 @@ const CopilotOpportunityDetails: FC<{}> = () => {
125
125
}
126
126
127
127
const application = copilotApplications && copilotApplications [ 0 ]
128
- const isAlreadyMemberOfTheProject = profile && opportunity ?. members ?. includes ( profile . userId )
129
128
130
129
return (
131
130
< ContentLayout
@@ -135,7 +134,7 @@ const CopilotOpportunityDetails: FC<{}> = () => {
135
134
&& copilotApplications
136
135
&& copilotApplications . length === 0
137
136
&& opportunity ?. status === 'active'
138
- && ! isAlreadyMemberOfTheProject ? applyCopilotOpportunityButton : undefined
137
+ && opportunity ?. canApplyAsCopilot ? applyCopilotOpportunityButton : undefined
139
138
}
140
139
infoComponent = { ( isCopilot && ! ( copilotApplications
141
140
&& copilotApplications . length === 0
You can’t perform that action at this time.
0 commit comments