Skip to content

Commit

Permalink
Switch Q1 to be max 3 or 4 points depending on Q3 presence
Browse files Browse the repository at this point in the history
  • Loading branch information
meleongg committed Dec 26, 2023
1 parent 7aaf5ae commit 760fa0d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
30 changes: 15 additions & 15 deletions components/Evaluator/Scoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export default function Scoring({ shouldDisplay, applicant }) {
case SCORING.ESSAY1.label:
field = 'ResponseOneScore'
break
case SCORING.ESSAY2NOESSAY3.label:
field = 'ResponseTwoScore'
case SCORING.ESSAY1NOESSAY3.label:
field = 'ResponseOneScore'
break
case SCORING.ESSAY2.label:
field = 'ResponseTwoScore'
Expand Down Expand Up @@ -113,30 +113,30 @@ export default function Scoring({ shouldDisplay, applicant }) {
score={scores?.ResumeScore}
maxScore={SCORING.RESUME}
/>
<ScoreInput
label={SCORING.ESSAY1.label}
handleClick={handleClick}
score={scores?.ResponseOneScore}
maxScore={SCORING.ESSAY1}
hasMinusOne
/>
{applicant?.skills?.longAnswers3 ? (
<ScoreInput
label={SCORING.ESSAY2.label}
label={SCORING.ESSAY1.label}
handleClick={handleClick}
score={scores?.ResponseTwoScore}
maxScore={SCORING.ESSAY2}
score={scores?.ResponseOneScore}
maxScore={SCORING.ESSAY1}
hasMinusOne
/>
) : (
<ScoreInput
label={SCORING.ESSAY2NOESSAY3.label}
label={SCORING.ESSAY1NOESSAY3.label}
handleClick={handleClick}
score={scores?.ResponseTwoScore}
maxScore={SCORING.ESSAY2NOESSAY3}
score={scores?.ResponseOneScore}
maxScore={SCORING.ESSAY1NOESSAY3}
hasMinusOne
/>
)}
<ScoreInput
label={SCORING.ESSAY2.label}
handleClick={handleClick}
score={scores?.ResponseTwoScore}
maxScore={SCORING.ESSAY2}
hasMinusOne
/>
{applicant?.skills?.longAnswers3 && (
<ScoreInput
label={SCORING.ESSAY3.label}
Expand Down
8 changes: 4 additions & 4 deletions constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,17 @@ export const SCORING = {
},
ESSAY1: {
label: 'Long Answer 1',
value: 4,
value: 3,
weight: 1,
},
ESSAY2NOESSAY3: {
label: 'Long Answer 2',
ESSAY1NOESSAY3: {
label: 'Long Answer 1',
value: 4,
weight: 1,
},
ESSAY2: {
label: 'Long Answer 2',
value: 3,
value: 4,
weight: 1,
},
ESSAY3: {
Expand Down

0 comments on commit 760fa0d

Please sign in to comment.