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 {
48
48
import { OpportunityDetails } from './tabs/opportunity-details'
49
49
import { CopilotApplications } from './tabs/copilot-applications'
50
50
import styles from './styles.module.scss'
51
+ import { toast } from 'react-toastify'
51
52
52
53
const CopilotOpportunityDetails : FC < { } > = ( ) => {
53
54
const { opportunityId } : { opportunityId ?: string } = useParams < { opportunityId ?: string } > ( )
@@ -105,7 +106,7 @@ const CopilotOpportunityDetails: FC<{}> = () => {
105
106
106
107
const onApplied : ( ) => void = useCallback ( ( ) => {
107
108
mutate ( `${ copilotBaseUrl } /copilots/opportunity/${ opportunityId } /applications` )
108
- mutate ( `${ copilotBaseUrl } /copilots /opportunity/${ opportunityId } ` )
109
+ mutate ( `${ copilotBaseUrl } /copilot /opportunity/${ opportunityId } ` )
109
110
} , [ ] )
110
111
111
112
const onCloseApplyModal : ( ) => void = useCallback ( ( ) => {
@@ -125,7 +126,8 @@ const CopilotOpportunityDetails: FC<{}> = () => {
125
126
if ( opportunityId ) {
126
127
await cancelCopilotOpportunity ( opportunityId )
127
128
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" )
129
131
}
130
132
131
133
}
You can’t perform that action at this time.
0 commit comments