File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/apps/copilots/src/pages/copilot-opportunity-details Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ import {
4848import { OpportunityDetails } from './tabs/opportunity-details'
4949import { CopilotApplications } from './tabs/copilot-applications'
5050import styles from './styles.module.scss'
51+ import { toast } from 'react-toastify'
5152
5253const CopilotOpportunityDetails : FC < { } > = ( ) => {
5354 const { opportunityId } : { opportunityId ?: string } = useParams < { opportunityId ?: string } > ( )
@@ -105,7 +106,7 @@ const CopilotOpportunityDetails: FC<{}> = () => {
105106
106107 const onApplied : ( ) => void = useCallback ( ( ) => {
107108 mutate ( `${ copilotBaseUrl } /copilots/opportunity/${ opportunityId } /applications` )
108- mutate ( `${ copilotBaseUrl } /copilots /opportunity/${ opportunityId } ` )
109+ mutate ( `${ copilotBaseUrl } /copilot /opportunity/${ opportunityId } ` )
109110 } , [ ] )
110111
111112 const onCloseApplyModal : ( ) => void = useCallback ( ( ) => {
@@ -125,7 +126,8 @@ const CopilotOpportunityDetails: FC<{}> = () => {
125126 if ( opportunityId ) {
126127 await cancelCopilotOpportunity ( opportunityId )
127128 mutate ( `${ copilotBaseUrl } /copilots/opportunity/${ opportunityId } /applications` )
128- mutate ( `${ copilotBaseUrl } /copilots/opportunity/${ opportunityId } ` )
129+ mutate ( `${ copilotBaseUrl } /copilot/opportunity/${ opportunityId } ` )
130+ toast . success ( "Canceled copilot opportunity successfully" )
129131 }
130132
131133 }
You can’t perform that action at this time.
0 commit comments