Skip to content

Commit

Permalink
renamed variable
Browse files Browse the repository at this point in the history
Signed-off-by: sudeep <[email protected]>
  • Loading branch information
sudeepkunhis committed Dec 4, 2023
1 parent 987b2cb commit 59c6c95
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ module.exports = (ajv) =>
const folders = getFolders({ questionnaire });
const pages = getPages({ questionnaire });

const currentSectionAnswers = pages.reduce(
const allAnswers = pages.reduce(
(acc, page) => (page.answers ? [...acc, ...page.answers] : acc),
[]
);

const selectedAnswers = currentSectionAnswers.filter((answer) =>
const selectedAnswers = allAnswers.filter((answer) =>
parentData.summaryAnswers.includes(answer.id)
);

Expand Down

0 comments on commit 59c6c95

Please sign in to comment.