Merge PR #67 toggle/course-sock

* Commits:
  Show course-sock only when the API says so
This commit is contained in:
stvn
2020-05-15 09:37:16 -07:00
2 changed files with 3 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import { logError } from '@edx/frontend-platform/logging';
function normalizeMetadata(metadata) {
return {
canShowUpgradeSock: metadata.can_show_upgrade_sock,
contentTypeGatingEnabled: metadata.content_type_gating_enabled,
// TODO: TNL-7185: return course expired _date_, instead of _message_
courseExpiredMessage: metadata.course_expired_message,