Skip to content

Commit

Permalink
Fixed Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289267 committed Apr 23, 2024
1 parent 4449563 commit 28d2fab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import axios from 'axios'
class CreationHistoricalRecord{

constructor() {
this.initRecord();
}
initRecord(){
this.record = {
game: {
questions: []
Expand Down Expand Up @@ -54,7 +57,7 @@ class CreationHistoricalRecord{
}
});


this.initRecord();
console.log('Registro enviado:', response.data);
} catch (error) {
console.error('Error al enviar el registro:', error.message);
Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/questionView/QuestionView.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function QuestionView({type= "COMPETITIVE", amount=5}){

var generatedQuestions = await questionGenerator.generateQuestions(i18n.language, type, amount, cookie.token);
setQuestions(generatedQuestions);
points=0;
setnumQuestion(0);
} catch (error) {
//Como hacer que funcione esto
Expand Down
11 changes: 0 additions & 11 deletions webapp/src/components/questionView/test.html

This file was deleted.

0 comments on commit 28d2fab

Please sign in to comment.