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

Method showHocProgress

app/views/courses/CoursesView.js:531–539  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

529 }
530
531 showHocProgress () {
532 const hocClassrooms = this.classrooms.models.find(c => {
533 return c.get('courses').filter(course => c._id === this.hourOfCodeOptions.courseId) && (c.get('aceConfig').language === this.hocCodeLanguage)
534 }) || []
535 // show showHocProgress if student signed up using the end modal, and there are no relevant classrooms
536 if ((hocClassrooms.length === 0) && (me.get('hourOfCodeOptions') || {}).showHocProgress) {
537 return true
538 }
539 }
540
541 calculateHocStats () {
542 const hocCampaignSessions = ((store.getters != null ? store.getters['levelSessions/getSessionsForCampaign'](this.hourOfCodeOptions.campaignId) : undefined) || {}).sessions || []

Callers 2

constructorMethod · 0.95
onLoadedMethod · 0.95

Calls 2

filterMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected