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

Method typeDescription

app/models/Prepaid.js:73–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 }
72
73 typeDescription () {
74 const type = this.get('type')
75 if (type === 'starter_license') {
76 return i18n.t('teacher.starter_license')
77 }
78 const includedCourseIDs = this.get('includedCourseIDs')
79 const credit = this.get('properties')?.creditDetails
80 return utils.courseDescription(includedCourseIDs, credit)
81 }
82
83 typeDescriptionWithTime () {
84 const endDate = moment(this.get('endDate')).utc().format('ll')

Callers 2

Calls 1

getMethod · 0.45

Tested by

no test coverage detected