mirror of
https://github.com/status-im/ETHReport.git
synced 2025-02-03 18:13:59 +00:00
Add count
This commit is contained in:
parent
f1d7754ab2
commit
a1d3fb96c6
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user