mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
🐛Classroom last played string null level check
This commit is contained in:
parent
7bf3fc6a78
commit
01a8312617
1 changed files with 4 additions and 1 deletions
|
@ -157,7 +157,10 @@ module.exports = class ClassroomView extends RootView
|
|||
course = session.collection.course
|
||||
levelOriginal = session.get('level').original
|
||||
level = @levels.findWhere({original: levelOriginal})
|
||||
return "#{course.get('name')}, #{level.get('name')}"
|
||||
lastPlayed = ""
|
||||
lastPlayed += course.get('name') if course
|
||||
lastPlayed += ", #{level.get('name')}" if level
|
||||
lastPlayed
|
||||
|
||||
userPlaytimeString: (user) ->
|
||||
return '' unless user.sessions?
|
||||
|
|
Loading…
Reference in a new issue