Skip to content

fix(PM-1273): remove members from copilot response and use canApplyAsCopilot #1114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2025

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
@@ -135,7 +134,7 @@ const CopilotOpportunityDetails: FC<{}> = () => {
&& copilotApplications
&& 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.

2 participants