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

:twisted_rightwards_arrows: merge fix: send categorie in creation quiz

Merge branch 'fix/categorie-creation-quiz' into 'develop'
parents d3386cfb e8cc084c
Branches
1 merge request!57fix: send categorie in creation quiz
Pipeline #304186 passed with stages
in 58 seconds
...@@ -45,7 +45,7 @@ export class FormCreateQuizComponent implements OnInit { ...@@ -45,7 +45,7 @@ export class FormCreateQuizComponent implements OnInit {
const categories = this.form.value.category; const categories = this.form.value.category;
const difficulty = this.form.value.difficulty; const difficulty = this.form.value.difficulty;
const NbQuestion = this.form.value.nbQuestion; 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) => { next: (data: any) => {
this.router.navigate(['/play-quiz'], { queryParams: { idQuiz: data.id } }); 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