Skip to content

Conversation

@hentrymartin
Copy link
Collaborator

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/PM-1273

What's in this PR?

  • removed members from copilot response and use canApplyAsCopilot

@hentrymartin hentrymartin requested a review from kkartunov June 19, 2025 04:27
&& copilotApplications.length === 0
&& opportunity?.status === 'active'
&& !isAlreadyMemberOfTheProject ? applyCopilotOpportunityButton : undefined
&& opportunity?.canApplyAsCopilot ? applyCopilotOpportunityButton : undefined

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider checking if opportunity?.canApplyAsCopilot is explicitly false to ensure that the button is not rendered when it should not be. This can help avoid potential issues if canApplyAsCopilot is undefined or null.

@kkartunov kkartunov merged commit 26ee3b3 into dev Jun 19, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants