Skip to content

Commit

Permalink
Merge pull request #375 from yeatmanlab/fix/parse-grade
Browse files Browse the repository at this point in the history
Fix parse grade bug
  • Loading branch information
richford authored Feb 16, 2024
2 parents dc343c1 + 5508155 commit fc9f2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ScoreReport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ function rawScoreByTaskId(taskId) {
const parseGrade = (grade) => {
const gradeZero = ['kindergarten', 'preschool', 'k', 'pk', 'tk', 'prekindergarten'];
return gradeZero.includes(grade?.toLowerCase()) ? 0 : parseInt(grade);
return gradeZero.includes(String(grade)?.toLowerCase()) ? 0 : parseInt(grade);
};
const runsByTaskId = computed(() => {
Expand Down

0 comments on commit fc9f2bf

Please sign in to comment.