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

Commit b4551de

Browse files
committed
Fixed an issue with wrong candidate handle displayed during interview request process.
1 parent a5fa998 commit b4551de

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

src/routes/PositionDetails/components/InterviewPopup/Confirm/index.jsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ import "./styles.module.scss";
1818
*/
1919
const Confirm = ({
2020
scheduleDetails,
21-
candidateId,
22-
userProfile,
21+
candidate,
2322
onGoBack,
2423
onContinue,
2524
onShowingLoader,
2625
}) => {
27-
const { handle } = userProfile;
26+
const { handle, id: candidateId } = candidate;
2827
const { duration } = scheduleDetails;
2928

3029
/**
@@ -83,8 +82,7 @@ const Confirm = ({
8382

8483
Confirm.propTypes = {
8584
scheduleDetails: PT.object,
86-
userProfile: PT.object,
87-
candidateId: PT.string,
85+
candidate: PT.object,
8886
onGoBack: PT.func,
8987
onContinue: PT.func,
9088
onShowingLoader: PT.func,

src/routes/PositionDetails/components/InterviewPopup/Success/index.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import "./styles.module.scss";
77
/**
88
* The success component shown once the interview is scheduled successfully
99
*/
10-
const Success = ({ userProfile, onContinue }) => {
11-
const { handle } = userProfile;
10+
const Success = ({ candidate, onContinue }) => {
11+
const { handle } = candidate;
1212
return (
1313
<div styleName="success-wrapper">
1414
<div styleName="success-text">
@@ -29,7 +29,7 @@ const Success = ({ userProfile, onContinue }) => {
2929
};
3030

3131
Success.propTypes = {
32-
userProfile: PT.object,
32+
candidate: PT.object,
3333
};
3434

3535
export default Success;

src/routes/PositionDetails/components/InterviewPopup/index.jsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -209,16 +209,15 @@ const InterviewPopup = ({
209209
return (
210210
<Confirm
211211
scheduleDetails={scheduleDetails}
212-
userProfile={v5UserProfile}
213212
onContinue={onChangeStage}
214213
onGoBack={onGoingBack}
215214
onShowingLoader={onShowingLoader}
216-
candidateId={candidate.id}
215+
candidate={candidate}
217216
/>
218217
);
219218
case POPUP_STAGES.SUCCESS:
220219
return (
221-
<Success userProfile={v5UserProfile} onContinue={onChangeStage} />
220+
<Success candidate={candidate} onContinue={onChangeStage} />
222221
);
223222
default:
224223
return null;

0 commit comments

Comments
 (0)