mirror of
https://github.com/status-im/ETHReport.git
synced 2025-02-10 05:24:47 +00:00
Add count
This commit is contained in:
parent
f1d7754ab2
commit
a1d3fb96c6
@ -106,8 +106,7 @@ class BrowseArchives extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
transformInterviews = (interviews) => {
|
transformInterviews = (interviews) => {
|
||||||
// eslint-disable-next-line
|
const { length } = Object.keys(interviews);
|
||||||
const length = Object.keys(interviews).length;
|
|
||||||
const betterInterviews = [];
|
const betterInterviews = [];
|
||||||
|
|
||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
||||||
@ -216,14 +215,6 @@ class BrowseArchives extends React.Component {
|
|||||||
|
|
||||||
const matchCount = matchingQuestionAnswerPositions
|
const matchCount = matchingQuestionAnswerPositions
|
||||||
.reduce((accumulator, match) => accumulator + match.count, 0);
|
.reduce((accumulator, match) => accumulator + match.count, 0);
|
||||||
// eslint-disable-next-line
|
|
||||||
console.log({
|
|
||||||
found: true,
|
|
||||||
foundIndex,
|
|
||||||
positionInAnswer,
|
|
||||||
matchingQuestionAnswerPositions,
|
|
||||||
matchCount,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (matchingQuestions.length > 0) {
|
if (matchingQuestions.length > 0) {
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user