Skip to content
Snippets Groups Projects
Commit e8cc084c authored by HUSS THEOPHILE's avatar HUSS THEOPHILE
Browse files

fix: send categorie in creation quiz

parent d3386cfb
1 merge request!57fix: send categorie in creation quiz
Pipeline #304185 passed with stages
in 31 seconds
......@@ -45,7 +45,7 @@ export class FormCreateQuizComponent implements OnInit {
const categories = this.form.value.category;
const difficulty = this.form.value.difficulty;
const NbQuestion = this.form.value.nbQuestion;
this.questionService.createQuiz(NbQuestion, categories.id, difficulty).subscribe({
this.questionService.createQuiz(NbQuestion, Number(categories), difficulty).subscribe({
next: (data: any) => {
this.router.navigate(['/play-quiz'], { queryParams: { idQuiz: data.id } });
},
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment