Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 70b473e

Browse files
committed
fix: issue #523
1 parent ee9dc30 commit 70b473e

File tree

3 files changed

+11
-101
lines changed

3 files changed

+11
-101
lines changed

src/routes/SchedulingPage/index.jsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import _ from "lodash";
99
import Page from "components/Page";
1010
import LoadingIndicator from "components/LoadingIndicator";
1111
import PageHeader from "components/PageHeader";
12-
import { getInterview } from "services/scheduler";
12+
import { getInterview } from "services/interviews";
1313
import { INTERVIEW_STATUS } from "constants";
1414
import withAuthentication from "../../hoc/withAuthentication";
1515

@@ -30,10 +30,7 @@ const SchedulingPage = ({ interviewId }) => {
3030
.then((profile) => {
3131
getInterview(interviewId)
3232
.then(({ data }) => {
33-
if (
34-
data.status === INTERVIEW_STATUS.SCHEDULED ||
35-
data.status === INTERVIEW_STATUS.RESCHEDULED
36-
) {
33+
if (data.status === INTERVIEW_STATUS.SCHEDULING) {
3734
setSchedulingPageUrl(
3835
`https://schedule.nylas.com/${data.nylasPageSlug}?email=${
3936
profile.email

src/services/interviews.js

+9
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@ export const confirmInterview = (candidateJobId, data) => {
1717
data
1818
);
1919
};
20+
21+
/**
22+
* Returns the interview page url for the given interview
23+
* @param {String} interviewId The interview id
24+
* @returns Promise
25+
*/
26+
export const getInterview = (interviewId) => {
27+
return axios.get(`${config.API.V5}/getInterview/${interviewId}`);
28+
};

src/services/scheduler.js

-96
This file was deleted.

0 commit comments

Comments
 (0)