Skip to content

Commit

Permalink
Merge pull request #52 from shikshalokam/countFix
Browse files Browse the repository at this point in the history
submission count fix
  • Loading branch information
aks30 authored Feb 16, 2022
2 parents c8b3caf + bf57831 commit 4d90e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/chart_data_v3.js
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ const getChartObject = async function (data, submissionCount) {
}
questionObject.answers.push(singleResponse.event.questionAnswer)
}))
questionObject.count = questionObject.answers.length;
questionObject.count = submissionCount;
questionObject.completedDate = sortedData[sortedData.length - 1].event.completedDate;
response.push(questionObject);
}
Expand Down

0 comments on commit 4d90e7a

Please sign in to comment.