Skip to content

Commit

Permalink
[Study programmes] Fix crashing when excluding graduated
Browse files Browse the repository at this point in the history
  • Loading branch information
rikurauhala committed Oct 29, 2024
1 parent 34a479c commit c9592ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const StudyTrackOverview = ({
return { studyTrackStatsGraduationStats, studyTrackStatsClassSizes }
}

if (studyProgrammeHasStudyTracks && Object.keys(stats?.data?.graduationTimes || {}).length > 0) {
if (studyProgrammeHasStudyTracks && Object.keys(stats?.data?.graduationTimes || {}).length > 1) {
studyTrackStatsGraduationStats.basic = calculateStudyTrackStats()
if (stats?.data?.doCombo) {
studyTrackStatsGraduationStats.combo = calculateStudyTrackStats(true)
Expand Down

0 comments on commit c9592ba

Please sign in to comment.