We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df01a29 commit 5a85c6bCopy full SHA for 5a85c6b
nestjs/src/courses/task-verifications/task-verifications.service.ts
@@ -87,7 +87,7 @@ export class TaskVerificationsService {
87
questionImage: taskQuestion.questionImage,
88
});
89
})
90
- .filter(Boolean);
+ .filter((question): question is SelfEducationQuestionSelectedAnswersDto => question !== null);
91
92
return new TaskVerificationAttemptDto(verification, questionsWithIncorrectAnswers);
93
0 commit comments