Skip to content

Commit

Permalink
use constant of stage selection
Browse files Browse the repository at this point in the history
  • Loading branch information
HalcyonJAC committed Nov 18, 2024
1 parent 1ac056d commit eb42278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/exerciseHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@ function isJAC00187(env, referenceNumber) {
function canApplyFullApplicationSubmitted(exercise) {
if (!exercise) return false;

const selectionProcess = exercise?._applicationContent?.selection || {};
const selectionProcess = exercise?._applicationContent?.[EXERCISE_STAGE.SELECTION] || {};
const isStagedExercise = Object.values(selectionProcess).includes(true);
const applyFullApplicationSubmitted = isStagedExercise && exercise.applicationOpenDate >= new Date(2024, 7, 18);

Expand Down

0 comments on commit eb42278

Please sign in to comment.