Skip to content

Commit

Permalink
Error al guardar en batería
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 29, 2024
1 parent 36a04c8 commit c4ef7f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webapp/src/pages/Bateria/Bateria.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const JuegoPreguntas = () => {
const [incorrectAnswers, setIncorrectAnswers] = useState(0);
const [averageTime, setAverageTime] = useState(0);

const questionsToSave = [];
const [questionsToSave, setQuestionsToSave] = useState([]);

useEffect(() => {
setProgressPercent(100);
Expand Down Expand Up @@ -152,7 +152,7 @@ const JuegoPreguntas = () => {
correcta: actualQuestion.correcta,
respuesta: answer,
};
questionsToSave.push(pregunta);
setQuestionsToSave([...questionsToSave, pregunta]);

if (questionIndex + 1 < questions.length) {
setQuestionIndex(questionIndex + 1);
Expand Down
1 change: 0 additions & 1 deletion webapp/src/pages/Social/UserGroups.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
Th,
Td,
Flex,
Box,
} from "@chakra-ui/react";
import Nav from "../../components/Nav/Nav.js";
import Footer from "../../components/Footer/Footer.js";
Expand Down

0 comments on commit c4ef7f8

Please sign in to comment.