Skip to content

Commit

Permalink
fix multiple answers for endings
Browse files Browse the repository at this point in the history
  • Loading branch information
PineappleRind committed Sep 18, 2023
1 parent b317267 commit 4bf0160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/quiz/active/generateQuizQuestions/endings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export function generateEndingQuestions<
: (ending as ConjugationEnding).conjugation,
ending as CaseEnding & ConjugationEnding,
);
const answer = ending.ending;
const answers = ending.ending.split(",");

const formulation: QuizQuestion = {
type,
question,
answer,
answer: answers,
};

questions.push(formulation);
Expand Down

0 comments on commit 4bf0160

Please sign in to comment.