Skip to content

Conversation

@jmgasper
Copy link
Contributor

@jmgasper jmgasper merged commit 535df05 into master Nov 12, 2025
2 checks passed
if (dependentOpenPhases.length === 0) {
const normalizedPhaseName = normalizePhaseName(phaseName);
const hasSubmissionVariantOpen = openPhases.some((phase) =>
SUBMISSION_PHASE_NAME_SET.has(normalizePhaseName(phase?.name))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[💡 readability]
The use of optional chaining (phase?.name) is unnecessary here since openPhases is derived from a database query and should not contain null or undefined entries. Consider removing it to simplify the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants