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

Method shouldEmphasizeAILeague

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

Source from the content-addressed store, hash-verified

354 }
355
356 shouldEmphasizeAILeague () {
357 let left
358 if (_.size(this.myArenaSessions)) { return true }
359 if (me.isRegisteredForAILeague()) { return true }
360 if (__guard__(me.get('stats'), x => x.gamesCompleted) >= 6) { return true }
361 if (((left = me.get('courseInstances')) != null ? left : []).length === 0) { return true }
362 if (this.nextLevelInfo != null ? this.nextLevelInfo.locked : undefined) { return true }
363 return false
364 }
365
366 hasCodeNinjasEsportsCamp () {
367 return me.isCodeNinja() && _.find(this.classrooms?.models || [], classroom => classroom.get('type') === 'camp-esports')

Callers 1

aiLeagueTilesMethod · 0.95

Calls 3

__guard__Function · 0.70
getMethod · 0.45

Tested by

no test coverage detected