Skip to content

Commit

Permalink
Test question to run the game
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloGOP committed Apr 22, 2024
1 parent 4eeaf59 commit 0aea3dc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions webapp/src/pages/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,18 @@ const Game = () => {
setButtonStates(new Array(quest.data.options.length).fill(null));
}).catch(error => {
console.error(error);
let quest = {}
quest.data = {
"_id":"1",
"question":"Esta pregunta de prueba resulta de su agrado?",
"options":["Muchísimo","Un cacho","Tope flama","Fino filipino"],
"correctAnswer":"Tope flama",
"categories":["Political"],
"id":"1",
"__v":0
};
setQuestionData(quest.data);
setButtonStates(new Array(quest.data.options.length).fill(null));
});
};

Expand Down

0 comments on commit 0aea3dc

Please sign in to comment.