Skip to content

Commit

Permalink
fix average score string too long
Browse files Browse the repository at this point in the history
  • Loading branch information
morris13579 committed Jan 23, 2021
1 parent 8090230 commit fe75d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/model/course/CourseScoreJson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class SemesterCourseScoreJson {
}
}
average /= total;
return (averageScore != 0) ? averageScore.toString() : average.toString();
return (averageScore != 0) ? averageScore.toString() : average.toStringAsFixed(2);
}

String getPerformanceScoreString() {
Expand Down

0 comments on commit fe75d4b

Please sign in to comment.