mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-25 12:20:32 -04:00
🐛Fix teacher course management null check
This commit is contained in:
parent
31e7b36310
commit
a851b7129a
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ module.exports = class TeacherCoursesView extends RootView
|
|||
|
||||
user = @usersToRedeem.first()
|
||||
|
||||
prepaid = @prepaids.find((prepaid) -> prepaid.get('properties').endDate? and prepaid.openSpots())
|
||||
prepaid = @prepaids.find((prepaid) -> prepaid.get('properties')?.endDate? and prepaid.openSpots())
|
||||
prepaid = @prepaids.find((prepaid) -> prepaid.openSpots()) unless prepaid
|
||||
$.ajax({
|
||||
method: 'POST'
|
||||
|
|
Loading…
Add table
Reference in a new issue