Skip to content

Commit cca9941

Browse files
committed
fix: refetch opportunity details on canceling opportunity
1 parent 9b6c7bc commit cca9941

File tree

1 file changed

+2
-2
lines changed
  • src/apps/copilots/src/pages/copilot-opportunity-details

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from 'react'
1313
import { useLocation, useNavigate, useParams } from 'react-router-dom'
1414
import { mutate } from 'swr'
15+
import { toast } from 'react-toastify'
1516
import moment from 'moment'
1617

1718
import {
@@ -48,7 +49,6 @@ import {
4849
import { OpportunityDetails } from './tabs/opportunity-details'
4950
import { CopilotApplications } from './tabs/copilot-applications'
5051
import styles from './styles.module.scss'
51-
import { toast } from 'react-toastify'
5252

5353
const CopilotOpportunityDetails: FC<{}> = () => {
5454
const { opportunityId }: {opportunityId?: string} = useParams<{ opportunityId?: string }>()
@@ -127,7 +127,7 @@ const CopilotOpportunityDetails: FC<{}> = () => {
127127
await cancelCopilotOpportunity(opportunityId)
128128
mutate(`${copilotBaseUrl}/copilots/opportunity/${opportunityId}/applications`)
129129
mutate(`${copilotBaseUrl}/copilot/opportunity/${opportunityId}`)
130-
toast.success("Canceled copilot opportunity successfully")
130+
toast.success('Canceled copilot opportunity successfully')
131131
}
132132

133133
}

0 commit comments

Comments
 (0)