Skip to content

Commit 149b6d7

Browse files
committed
fix rerouting and project name exposed
1 parent 7ef1d05 commit 149b6d7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/apps/copilots/src/pages/copilot-opportunity-details/apply-opportunity-modal/ApplyOpportunityModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ const ApplyOpportunityModal: FC<ApplyOpportunityModalProps> = props => {
6666
We truly value your interest and effort.
6767
Your application will be reviewed promptly.`
6868
: `We're excited to see your interest in joining our team as a copilot
69-
for the "${props.projectName}" project! Before we proceed, we want to
70-
ensure that you have carefully reviewed the project requirements and
69+
for this opportunity! Before we proceed, we want to
70+
ensure that you have carefully reviewed the opportunity requirements and
7171
are committed to meeting them. Please write below the reason(s)
72-
why you believe you're a good fit for this project
72+
why you believe you're a good fit for this opportunity
7373
(e.g., previous experience, availability, etc.).`
7474
}
7575
</div>

src/apps/copilots/src/pages/copilot-request-form/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { getProject, getProjects, ProjectsResponse, useProjects } from '../../se
1313
import { ProjectTypes, ProjectTypeValues } from '../../constants'
1414
import { CopilotRequestResponse, saveCopilotRequest, useCopilotRequest } from '../../services/copilot-requests'
1515
import { Project } from '../../models/Project'
16+
import { rootRoute } from '../../copilots.routes'
1617

1718
import styles from './styles.module.scss'
1819

@@ -321,7 +322,7 @@ const CopilotRequestForm: FC<{}> = () => {
321322
setPaymentType('')
322323
// Added a small timeout for the toast to be visible properly to the users
323324
setTimeout(() => {
324-
navigate('/requests')
325+
navigate(`${rootRoute}/requests`)
325326
}, 1000)
326327
})
327328
.catch(e => {

0 commit comments

Comments
 (0)