Skip to content

Commit

Permalink
Merge pull request #122 from Arquisoft/121-record-saving-not-working-…
Browse files Browse the repository at this point in the history
…as-expected

Fixed Bug
  • Loading branch information
Mister-Mario authored Apr 23, 2024
2 parents 4449563 + 28d2fab commit c32009e
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 c32009e

Please sign in to comment.