feat: seperate single and multi choice questions

This commit is contained in:
2026-08-17 09:43:56 +03:30
parent f6a57454f4
commit ca8d02c531
27 changed files with 347 additions and 28 deletions
@@ -162,7 +162,7 @@ export class CalculateResultProvider {
if (!question) continue;
if (
question.type === QuestionType.MULTI_CHOICE &&
question.type === QuestionType.SINGLE_CHOICE &&
answer.choiceId !== undefined
) {
const choice =
@@ -192,7 +192,7 @@ export class CalculateResultProvider {
questions.forEach((question) => {
const answerScores: number[] = [];
if (question.type === QuestionType.MULTI_CHOICE) {
if (question.type === QuestionType.SINGLE_CHOICE) {
question.choices.forEach((choice) => {
answerScores.push(choice.score);
});