Skip to content

Hot fixes 2 #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
3 changes: 1 addition & 2 deletions src/utils/submission.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ export function processMMSubmissions(submissions, resources, registrants) {
if (!data[memberHandle]) {
data[memberHandle] = [];
}
const validReviews = _.filter(submission.review,
r => !_.isEmpty(r) && (r.typeId !== AV_SCAN_SCORER_REVIEW_TYPE_ID));
const validReviews = _.reject(submission.review, ['typeId', AV_SCAN_SCORER_REVIEW_TYPE_ID]);
validReviews.sort((a, b) => {
const dateA = new Date(a.created);
const dateB = new Date(b.created);
Expand Down