From 5647bf15b394e025fd7b12a0060befb9b69ad47b Mon Sep 17 00:00:00 2001 From: Pierre Ferreira Date: Fri, 1 Dec 2023 08:11:51 +0100 Subject: [PATCH] debug pour que la CI passe :bug: :green_heart: --- cryptide_project/src/Components/GraphContainer.tsx | 3 +++ cryptide_project/src/Pages/Profile.tsx | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 1a73e44..7ee5458 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 = () => {