diff --git a/cryptide_project/src/Components/GraphContainer.tsx b/cryptide_project/src/Components/GraphContainer.tsx index 17e588e..d6f7755 100644 --- a/cryptide_project/src/Components/GraphContainer.tsx +++ b/cryptide_project/src/Components/GraphContainer.tsx @@ -460,6 +460,7 @@ const MyGraphComponent: React.FC = ({onNodeClick, handleS const tester = IndiceTesterFactory.Create(indice) const tabPossible: Person[] = [] for(const person of personNetwork.getPersons()){ + //@ts-ignore const node = nodes.get().find((n) => n.id == person.getId()) if (node != undefined) { let isSquare = false @@ -584,6 +585,7 @@ const MyGraphComponent: React.FC = ({onNodeClick, handleS //Pour poser un carré const tester = IndiceTesterFactory.Create(indice) for(const person of personNetwork.getPersons()){ + //@ts-ignore const node = nodes.get().find((n) => n.id == person.getId()) if (node == undefined) continue let isSquare = false @@ -724,6 +726,7 @@ const MyGraphComponent: React.FC = ({onNodeClick, handleS if (!solo){ if (askedWrongLocal){ const person = personNetwork?.getPersons().find((p) => p.getId() == params.nodes[0]) + //@ts-ignore const node = nodes.get().find((n) => n.id == params.nodes[0]) if (person !== undefined && indice !== null && node!=undefined){ const tester = IndiceTesterFactory.Create(indice) diff --git a/cryptide_project/src/Pages/Profile.tsx b/cryptide_project/src/Pages/Profile.tsx index 8a0c86a..f7ed705 100644 --- a/cryptide_project/src/Pages/Profile.tsx +++ b/cryptide_project/src/Pages/Profile.tsx @@ -2,10 +2,10 @@ import React, { useEffect, useState } from 'react'; import ProfilePDP from '../Components/ProfilePDP'; import SessionService from '../services/SessionService'; +import AuthService from '../services/AuthService'; import { PlayerProps } from '../types/Player'; import { delay, update } from 'lodash'; import { socket } from '../SocketConfig'; -import AuthService from '../services/AuthService'; /* Style */ @@ -14,6 +14,9 @@ import Edit from "../res/icon/edit-pen.png" import Coche from '../res/icon/coche.png' import Cancel from '../res/icon/cancel.png' +/* Nav */ +import { useNavigate } from 'react-router-dom'; + /* Model */ import User from '../model/User'; @@ -25,7 +28,7 @@ import Button from 'react-bootstrap/Button'; import Alert from 'react-bootstrap/Alert'; import Modal from 'react-bootstrap/Modal'; import Form from 'react-bootstrap/Form'; -import { useNavigate } from 'react-router-dom'; + //@ts-ignore const Profile = () => {