Skip to content

Commit fbe6eff

Browse files
committed
fix: qa feedbacks
1 parent 94afdd5 commit fbe6eff

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/apps/copilots/src/pages/copilot-opportunity-details/tabs/copilot-applications/AlreadyMemberModal.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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 &apos;Confirm&apos; to accept and complete this opportunity.</div>
34+
35+
{
36+
props.copilotApplication.existingMembership
37+
&& ['copilot', 'manager'].includes(props.copilotApplication.existingMembership.role)
38+
&& <div>Click &apos;Confirm&apos; 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 &apos;Confirm&apos; to accept by updating project role to &apos;Copilot&apos; and complete this opportunity</div>
45+
}
3546
</div>
3647
</div>
3748
</BaseModal>

0 commit comments

Comments
 (0)