mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Fix campaign editor analytics
Dividing by zero for level completion spark lines in campaign overview analytics modal.
This commit is contained in:
parent
7fda59ee2d
commit
d368e3ffd8
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ module.exports = class CampaignAnalyticsModal extends ModalView
|
|||
for level in @campaignCompletions.levels
|
||||
days = []
|
||||
for day of level['days']
|
||||
continue unless level['days'][day].started > 0
|
||||
days.push
|
||||
day: day
|
||||
rate: level['days'][day].finished / level['days'][day].started
|
||||
|
|
Loading…
Add table
Reference in a new issue