File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/apps/copilots/src/pages/copilot-opportunity-details/tabs/copilot-applications Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,18 @@ const AlreadyMemberModal: FC<AlreadyMemberModalProps> = props => (
3131 < div className = { styles . info } >
3232 { `The copilot ${ props . handle } is part of ${ props . projectName }
3333 project with ${ props . copilotApplication . existingMembership ?. role } role.` }
34- < div > Click 'Confirm' to accept and complete this opportunity.</ div >
34+
35+ {
36+ props . copilotApplication . existingMembership
37+ && [ 'copilot' , 'manager' ] . includes ( props . copilotApplication . existingMembership . role )
38+ && < div > Click 'Confirm' to accept and complete this opportunity.</ div >
39+ }
40+
41+ {
42+ props . copilotApplication . existingMembership
43+ && [ 'observer' , 'customer' ] . includes ( props . copilotApplication . existingMembership . role )
44+ && < div > Click 'Confirm' to accept by updating project role to 'Copilot' and complete this opportunity</ div >
45+ }
3546 </ div >
3647 </ div >
3748 </ BaseModal >
You can’t perform that action at this time.
0 commit comments