Skip to content

Commit c120616

Browse files
committed
fix: don't show applied on for completed project
1 parent f07ce95 commit c120616

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/apps/copilots/src/models/CopilotApplication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ export interface CopilotApplication {
1111
opportunityId: string,
1212
handle?: string,
1313
userId: number,
14-
status: string,
14+
status: CopilotApplicationStatus,
1515
}

src/apps/copilots/src/pages/copilot-opportunity-details/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ const CopilotOpportunityDetails: FC<{}> = () => {
137137
}
138138
infoComponent={(isCopilot && !(copilotApplications
139139
&& copilotApplications.length === 0
140-
&& opportunity?.status === 'active'
141-
) && !!application) && (
140+
) && opportunity?.status === 'active' && !!application) && (
142141
<div className={styles.applied}>
143142
<IconSolid.CheckCircleIcon className={styles.appliedIcon} />
144143
<span

src/apps/copilots/src/services/copilot-opportunities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const applyCopilotOpportunity = async (opportunityId: number, request?: {
108108
/**
109109
* apply copilot opportunity
110110
* @param opportunityId
111-
* @param request
111+
* @param applicationId
112112
* @returns
113113
*/
114114
export const assignCopilotOpportunity = async (

0 commit comments

Comments
 (0)