Skip to content

Commit

Permalink
fix: [選課小幫手] 課程數及學分數計算
Browse files Browse the repository at this point in the history
  • Loading branch information
itshenrywu authored Aug 20, 2024
1 parent 0bab2f3 commit d004306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/saved.html
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@
function updateCount() {
_c = 0; _h = 0;
$.each( savedCourse, function( k, v ) {
_c += parseInt(courseData[v]['credit'])
if(courseData[v]) _c += parseInt(courseData[v]['credit'])
})
$('.savedCourse_credit').text(_c);
$('.savedCourse_count').text(savedCourse.length);
Expand Down

0 comments on commit d004306

Please sign in to comment.