Skip to content

Commit 2b9c86e

Browse files
authored
Merge pull request #1088 from topcoder-platform/pm-580_1
fix(PM-580): return if already invited
2 parents baa4337 + 5c70b90 commit 2b9c86e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const CopilotApplicationAction = (
1919
[allCopilotApplications],
2020
)
2121
const onClick = useCallback(async () => {
22-
if (copilotApplication.status !== CopilotApplicationStatus.PENDING) {
22+
if (copilotApplication.status !== CopilotApplicationStatus.PENDING || isInvited) {
2323
return
2424
}
2525

0 commit comments

Comments
 (0)