Skip to content

Commit

Permalink
Cambios menores para el despliegue
Browse files Browse the repository at this point in the history
  • Loading branch information
UO289337 committed Apr 5, 2024
1 parent 941fc21 commit 30ce41f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ jobs:
wget https://raw.githubusercontent.com/arquisoft/wiq_es2c/master/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wiq_es2c/master/.env -O .env
docker compose --profile prod down
docker compose --profile prod up -d
docker compose --profile prod up -d --pull always
5 changes: 3 additions & 2 deletions webapp/src/components/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,19 @@ const Game = () => {
const [answeredQuestions,setAnsweredQuestions] = useState(1);
const [isTimeRunning, setIsTimeRunning] = useState(true);

// Comentario de prueba para el despliegue
const MAX_TIME = 30;
const MAX_PREGUNTAS = 5;

const navigate = useNavigate();

const getQuestion = useCallback(async (answeredQuestionsValue) => {
try {
//console.log(" NUMERO DE PREGUNTA " + answeredQuestionsValue);
console.log(" NUMERO DE PREGUNTA " + answeredQuestionsValue);

const createNewGame = answeredQuestionsValue > 0 ? false : true;

//console.log(" HAY QUE CREAR UN NUEVO JUEGO? " + createNewGame);
console.log(" HAY QUE CREAR UN NUEVO JUEGO? " + createNewGame);

const response = await axios.get(`${apiEndpoint}/generateQuestion`, {
params: {
Expand Down

0 comments on commit 30ce41f

Please sign in to comment.