Skip to content

Commit

Permalink
Más errores
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 25, 2024
1 parent 928e2f3 commit cb53d74
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ app.get("/health", (req, res) => {
res.json({ status: "OK" });
});

var returnError = (res, error) => {
let returnError = (res, error) => {
console.log(error);
res.status(error.response.status).json({ error: error.response.data.error });
}
Expand Down Expand Up @@ -246,7 +246,7 @@ app.get("/ranking", async (req, res) => {
}
});

var openapiPath='./openapi.yaml'
let openapiPath='./openapi.yaml'
if (fs.existsSync(openapiPath)) {
const file = fs.readFileSync(openapiPath, 'utf8');

Expand Down
3 changes: 1 addition & 2 deletions webapp/src/components/CustomModal/CustomModal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { Button, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter } from '@chakra-ui/react';
import { useDisclosure } from '@chakra-ui/react';
import { Button, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, useDisclosure } from '@chakra-ui/react';
import { useNavigate } from 'react-router-dom';

const CustomModal = ({ title, text, route }) => {
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/Profile/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const Perfil = () => {
</Thead>
<Tbody>
{userData.games.slice(0, 10).map((game, index) => (
<Tr key={index}>
<Tr>
<Td textAlign={"center"}>{game.gamemode}</Td>
<Td textAlign={"center"}>{game.gamemode === 'calculadora' ? '-' : game.correctAnswers}</Td>
<Td textAlign={"center"}>{game.gamemode === 'calculadora' ? '-' : game.incorrectAnswers}</Td>
Expand Down
1 change: 0 additions & 1 deletion webapp/src/pages/Bateria/Bateria.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ const JuegoPreguntas = () => {
<Grid templateColumns="repeat(2, 1fr)" gap={4} mt={4}>
{preguntaActual.respuestas.map((respuesta, index) => (
<Button
key={index}
onClick={() => handleSiguientePregunta(respuesta)}
disabled={tiempoRestante === 0 || juegoTerminado}
whiteSpace={"normal"}
Expand Down

0 comments on commit cb53d74

Please sign in to comment.