fix: update border color for approved in another course status (#436)

This commit is contained in:
alangsto
2021-05-06 10:25:56 -04:00
committed by GitHub
parent e46977f50d
commit 73fa56d401

View File

@@ -58,9 +58,9 @@ function ProctoringInfoPanel({ courseId, username, intl }) {
function getBorderClass() {
let borderClass = '';
if (readableStatus === readableStatuses.submitted) {
if ([readableStatuses.submitted, readableStatuses.expiringSoon].includes(readableStatus)) {
borderClass = 'proctoring-onboarding-submitted';
} else if (readableStatus === readableStatuses.verified) {
} else if ([readableStatuses.verified, readableStatuses.otherCourseApproved].includes(readableStatus)) {
borderClass = 'proctoring-onboarding-success';
}
return borderClass;