Skip to content

Commit

Permalink
Fixed a wrong copy-paste, bad comunication, my fault
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Mario committed Apr 16, 2024
1 parent 243e280 commit 2f0b359
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions webapp/src/components/questionView/QuestionGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class QuestionGenerator{

}

async generateQuestions(lang, type, amount) {
async generateQuestions(lang) {

// try {
// //const response = await fetch(this.apiUrl);
Expand Down Expand Up @@ -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 = [];
Expand Down

0 comments on commit 2f0b359

Please sign in to comment.