AA-503: Course Celebration view for users in verification pending state (#301)

Learners were having questions when we would continue showing them the
'Verify Now' button if they had a submitted a verification attempt
already.
This commit is contained in:
Dillon Dumesnil
2020-12-09 11:37:23 -08:00
committed by GitHub
parent 264f36b89e
commit a604e0be10
5 changed files with 37 additions and 14 deletions

View File

@@ -56,6 +56,7 @@ Factory.define('courseMetadata')
user_has_passing_grade: false,
certificate_data: null,
verify_identity_url: null,
verification_status: 'none',
linkedin_add_to_profile_url: null,
related_programs: null,
}).attr(

View File

@@ -139,6 +139,7 @@ function normalizeMetadata(metadata) {
courseExitPageIsActive: metadata.course_exit_page_is_active,
certificateData: camelCaseObject(metadata.certificate_data),
verifyIdentityUrl: metadata.verify_identity_url,
verificationStatus: metadata.verification_status,
linkedinAddToProfileUrl: metadata.linkedin_add_to_profile_url,
relatedPrograms: camelCaseObject(metadata.related_programs),
};