fix: accurately represent pass/fail grade range (#433)

This commit is contained in:
Carla Duarte
2021-05-04 11:51:44 -04:00
committed by GitHub
parent c6627a0854
commit 36f567c834

View File

@@ -35,7 +35,7 @@ function CourseGradeFooter({ intl, passingGrade }) {
const OnMobile = layout.is('mobile');
const OnAtLeastTablet = layout.isAtLeast('tablet');
const hasLetterGrades = !gradeRange.pass;
const hasLetterGrades = Object.keys(gradeRange).length > 1; // A pass/fail course will only have one key
let footerText = intl.formatMessage(messages.courseGradeFooterNonPassing, { passingGrade });
if (isPassing) {