Skip to content

Commit dc4d07c

Browse files
authored
Merge pull request #1168 from topcoder-platform/pm-1506_2
fix(PM-1506): Show modal text based on existing role
2 parents 61e08d4 + c999669 commit dc4d07c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ const AlreadyMemberModal: FC<AlreadyMemberModalProps> = props => (
3434

3535
{
3636
props.copilotApplication.existingMembership
37-
&& ['copilot', 'manager'].includes(props.copilotApplication.existingMembership.role)
37+
&& ['observer', 'customer'].includes(props.copilotApplication.existingMembership.role)
3838
&& <div>Click &apos;Confirm&apos; to accept and complete this opportunity.</div>
3939
}
4040

4141
{
4242
props.copilotApplication.existingMembership
43-
&& ['observer', 'customer'].includes(props.copilotApplication.existingMembership.role)
43+
&& ['copilot', 'manager'].includes(props.copilotApplication.existingMembership.role)
4444
&& (
4545
<div>
4646
Click &apos;Confirm&apos; to accept by updating project role to &apos;Copilot&apos;

0 commit comments

Comments
 (0)