FIX translateSubmission to include the "accepted" prop.
@@ -12,10 +12,10 @@ import ListHeader from '../../../../components/shared/ListHeader/ListHeader';
import Divider from '../../../../components/shared/Divider/Divider';
import ListPagination from '../../../../components/shared/ListPagination/ListPagination';
-function translateSubmission({id, assignment_name, assignment_due, commit, processed, state, created, tests}) {
+function translateSubmission({id, assignment_name, assignment_due, commit, processed, state, created, tests, accepted}) {
return {
assignment_name, assignment_due, commit, created, tests,
- id, assignmentDue: new Date(assignment_due), state: state,
+ id, accepted, assignmentDue: new Date(assignment_due), state: state,
processed: processed, timeStamp: new Date(created),
};
}
