Add count

This commit is contained in:
Wisani Shilumani 2018-07-18 12:16:40 +02:00
parent f1d7754ab2
commit a1d3fb96c6

View File

@ -106,8 +106,7 @@ class BrowseArchives extends React.Component {
}
transformInterviews = (interviews) => {
// eslint-disable-next-line
const length = Object.keys(interviews).length;
const { length } = Object.keys(interviews);
const betterInterviews = [];
for (let i = 0; i < length; i++) {
@ -216,14 +215,6 @@ class BrowseArchives extends React.Component {
const matchCount = matchingQuestionAnswerPositions
.reduce((accumulator, match) => accumulator + match.count, 0);
// eslint-disable-next-line
console.log({
found: true,
foundIndex,
positionInAnswer,
matchingQuestionAnswerPositions,
matchCount,
});
if (matchingQuestions.length > 0) {
return {