From 2f0b3593bc60b60406740fa217ad1a2afa362941 Mon Sep 17 00:00:00 2001 From: Mister-Mario Date: Tue, 16 Apr 2024 17:39:57 +0200 Subject: [PATCH] Fixed a wrong copy-paste, bad comunication, my fault --- webapp/src/components/questionView/QuestionGenerator.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/webapp/src/components/questionView/QuestionGenerator.js b/webapp/src/components/questionView/QuestionGenerator.js index 731d055f..f471d69e 100644 --- a/webapp/src/components/questionView/QuestionGenerator.js +++ b/webapp/src/components/questionView/QuestionGenerator.js @@ -8,7 +8,7 @@ class QuestionGenerator{ } - async generateQuestions(lang, type, amount) { + async generateQuestions(lang) { // try { // //const response = await fetch(this.apiUrl); @@ -38,12 +38,7 @@ class QuestionGenerator{ try { - let response; - if(type==="COMPETITIVE"){ - response = await axios.get(this.apiUrl + '/' + lang); - }else{ - response = await axios.get(this.apiUrl + '/' + lang + '/' +amount + '/' + type); - } + const response = await axios.get(this.apiUrl + '/' + lang); const receivedQuestions = await response.data; let i = 0; var questions = [];