Skip to content

Commit

Permalink
Fixed All for question configurator
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289267 committed Apr 25, 2024
1 parent ec4ddb6 commit 4709fc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webapp/src/components/questionView/QuestionGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ class QuestionGenerator{
let response;
if(type==="COMPETITIVE"){
response = await axios.get(this.apiUrl + '/' + lang, {headers : {'token':token}});
}else{
}else if(type==="ALL"){
response = await axios.get(this.apiUrl + '/' + lang + '/' +amount, {headers : {'token':token}});
}
else{
response = await axios.get(this.apiUrl + '/' + lang + '/' +amount + '/' + type, {headers : {'token':token}});
}
console.log(response)
Expand Down

0 comments on commit 4709fc8

Please sign in to comment.