Skip to content
Snippets Groups Projects
Commit 90c4537f authored by Bereczki Sandor's avatar Bereczki Sandor
Browse files

Staffs no longer appear on the solution details panel.

parent 97297219
No related branches found
No related tags found
No related merge requests found
......@@ -26,14 +26,16 @@ class SolutionDetailsForm extends Component {
const profileSolutions = taskSolutions.filter(solution =>
solution.created_by === this.props.homeworks.profiles[i].id);
if (profileSolutions.length === 0) {
noSubmitStudents.push(this.props.homeworks.profiles[i]);
} else if (taskSolutions[taskSolutions.length - 1].corrected === false) {
waitForCorrectionStudents.push(this.props.homeworks.profiles[i]);
} else if (taskSolutions[taskSolutions.length - 1].accepted === false) {
noAcceptStudents.push(this.props.homeworks.profiles[i]);
} else {
acceptedStudents.push(this.props.homeworks.profiles[i]);
if (this.props.homeworks.profiles[i].role === 'Student') {
if (profileSolutions.length === 0) {
noSubmitStudents.push(this.props.homeworks.profiles[i]);
} else if (taskSolutions[taskSolutions.length - 1].corrected === false) {
waitForCorrectionStudents.push(this.props.homeworks.profiles[i]);
} else if (taskSolutions[taskSolutions.length - 1].accepted === false) {
noAcceptStudents.push(this.props.homeworks.profiles[i]);
} else {
acceptedStudents.push(this.props.homeworks.profiles[i]);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment