diff --git a/src/components/dashboard/AssessmentStatusDialog.js b/src/components/dashboard/AssessmentStatusDialog.js index 9ffc54a..79f895d 100644 --- a/src/components/dashboard/AssessmentStatusDialog.js +++ b/src/components/dashboard/AssessmentStatusDialog.js @@ -25,17 +25,17 @@ export const AssessmentStatusDialog = ({ toggleStatuses, statusIsOpen }) => { }, [activeStudent]) return -

{activeStudent?.name} is {activeStudent?.assessment_status === 0 ? "not assigned to the assessment" : `working on the self-assessment for ${activeStudent?.book?.name}`}

+

{activeStudent?.name} is {activeStudent?.assessment_status_id === 0 ? "not assigned to the assessment" : `working on the self-assessment for ${activeStudent?.book_name}`}

Update Self-Assessment Status

{ statuses.map(status => { - if ((activeStudent?.assessment_status > 0 && status.status !== "In Progress") || - (activeStudent?.assessment_status === 0 && status.status === "In Progress")) { + if ((activeStudent?.assessment_status_id > 0 && status.status !== "In Progress") || + (activeStudent?.assessment_status_id === 0 && status.status === "In Progress")) { return