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

Commit e3322d7

Browse files
committed
Fixing the finalSubmissionGuidelines issue
1 parent 3870d19 commit e3322d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/services/challengeService.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,9 @@ async function buildV5Challenge (legacyId, challengeListing, challengeDetails) {
535535
if (challengeDetails.introduction && challengeDetails.introduction.trim() !== '') {
536536
detailRequirement = challengeDetails.introduction + '<br />' + detailRequirement
537537
}
538-
if (_.get(challengeDetails, 'finalSubmissionGuidelines', '').trim() !== 'null' && _.get(challengeDetails, 'finalSubmissionGuidelines', '').trim() !== '') {
538+
if (_.get(challengeDetails, 'finalSubmissionGuidelines', '').trim() !== 'null' &&
539+
_.get(challengeDetails, 'finalSubmissionGuidelines', '').trim() !== '' &&
540+
_.get(challengeDetails, 'finalSubmissionGuidelines', '').trim() !== 'Please read above') {
539541
detailRequirement += '<br /><br /><h2>Final Submission Guidelines</h2>' + challengeDetails.finalSubmissionGuidelines
540542
}
541543
} else {

0 commit comments

Comments
 (0)