Skip to content

Commit b99bef7

Browse files
committed
fix: show invite button only for active projects
1 parent c9014f3 commit b99bef7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const CopilotApplicationAction = (
1313
copilotApplication: CopilotApplication,
1414
allCopilotApplications: CopilotApplication[],
1515
): JSX.Element => {
16-
console.log(copilotApplication)
1716
const { opportunityId }: {opportunityId?: string} = useParams<{ opportunityId?: string }>()
1817
const isInvited = useMemo(
1918
() => allCopilotApplications.findIndex(item => item.status === CopilotApplicationStatus.INVITED) > -1,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const CopilotApplications: FC<{
8080
activeProjects: member?.activeProjects || 0,
8181
fulfilment: member?.copilotFulfillment || 0,
8282
handle: member?.handle,
83-
oppourtunityStatus: props.opportunity.status,
83+
opportunityStatus: props.opportunity.status,
8484
}
8585
})
8686
.sort((a, b) => (b.fulfilment || 0) - (a.fulfilment || 0)) : [])

0 commit comments

Comments
 (0)