Skip to content

Commit

Permalink
Add new methods 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandros12345 committed Apr 21, 2024
1 parent 471dfb5 commit 04d3c01
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/modules/bar/bar.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,17 @@ export class BarService {
const setting = settings.find(
(setting) => report.settingId === setting.id,
);
const answers = report.answers
.map((answer) => {
return setting.answers[answer];
})
.filter((answer) => {
return answer !== undefined;
});

let answers;
if (report.answers) {
answers = report.answers
.map((answer) => {
return setting.answers[answer];
})
.filter((answer) => {
return answer !== undefined;
});
}

reports.push({
title: setting.title,
Expand Down

0 comments on commit 04d3c01

Please sign in to comment.