MCPcopy Create free account
hub / github.com/codecombat/codecombat / formatStudentSingleLicenseStatusDate

Function formatStudentSingleLicenseStatusDate

app/core/utils.js:1249–1255  ·  view source on GitHub ↗
(product)

Source from the content-addressed store, hash-verified

1247}
1248
1249const formatStudentSingleLicenseStatusDate = function (product) {
1250 let string = $.i18n.t('teacher.full_license')
1251 if ((product.productOptions != null ? product.productOptions.includedCourseIDs : undefined) != null) {
1252 string = product.productOptions.includedCourseIDs.map(id => courseAcronyms[id]).join('+')
1253 }
1254 return string += ': ' + moment(product.endDate).format('ll')
1255}
1256
1257const getApiClientIdFromEmail = function (email) {
1258 if (/@codeninjas.com$/i.test(email)) { // hard coded for code ninjas since a lot of their users do not have clientCreator set

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected